If you want to configure in eclipse only, just window->preference->myeclipse->file and Eiditor->xml->xml in the menu bar catalog- >add Add:
Location where the Struts-2.3.dtd is selected as shown in
Key type check URI
Key: There are <! in Struts.xml DOCTYPE Struts Public
"-//apache software foundation//dtd Struts Configuration 2.3//en"
"Http://struts.apache.org/dtds/struts-2.3.dtd" > select http://struts.apache.org/dtds/struts-2.3.dtd to
In Eclispe after the configuration is saved, when you write the Struts.xml file, you can automatically appear prompt. But myeclipse to change the editor as follows
Because the default settings for MyEclipse are not set in the XML editor, but instead are set to myeclipse struts2 XML editor, so we want to set the XML file corresponding to the editor to
myeclipse XML editor.
General----->file Association----> File Types Select *.xml under the association editor Select MyEclipse XML Editor Click the default button set to click OK to save exit Can
STRUTS2 configuration file configuration DTD in MyEclipse to support auto-completion