HowMyeclipse10CreateStruts2Configuration FileStruts. xml, That is, buildingStruts2Style configuration fileXMLFile?
1. decompress the latestStruts2 packageFile. Mine is:Struts-2.3.8-all.zipAnd then findStruts-2.3.dtdPath and copy it.
2.Myeclipse, SelectWindows-->Preferences--> In"Type Filter text"Input in the input boxXML catalog, ClickAdd.
Location:D: \ Download \ Java \ struts \ Lib \ Struts-2.3.8 \ DTD \ struts-2.3.dtd --------------->Location of the DTD file
Key type:Public ID
Key:-// Apache Software Foundation // DTD struts configuration 2.3 // en -------------->You can find from the struts-2.3.dtd File
Alternative web address:Http://struts.apache.org/dtds/struts-2.3.dtd -------------->You can find from the struts-2.3.dtd File
Click OK!
Use Time:
1,New-->XML (Basic templates)
2. input the file name:Struts. xml, Next.
3. Select:Create XML file from DTD file, Next.
4. Select:Select XML catelog entryTo list all XML catelog entries.
Select-// Apache Software Foundation // DTD struts configuration 2.3 // en, next.
5. Continue to next until OK!