Problem description:
The configuration file struts. XML to write struts2 is:
<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype struts public
"-// Apache Software Foundation // DTD struts configuration 2.0 // en"
Http://struts.apache.org/dtds/struts-2.0.dtd>
But no prompt Function
Steps:
1. Decompress Struts-2.2.1 (compressed package)
2. Click apps to enter
3, click the struts2-blank-2.2.1.war open mode WinRAR compressed file manager
4, click the WEB-INF to see Lib, and then drag the lib out. Store in a path
For example: e: // backup at any time/teacher/day59/struts2 documents/Struts-2.2.1/apps
5, click this lib to enter unzip the xwork-core-2.2.1 compressed package
6. Click here to decompress the package and enter. You can see the xwork-2.0.dtd file.
For example: e:/back up at any time/teacher/day59/struts2 documents/Struts-2.2.1/apps/lib/xwork-core-2.2.1
Then click
Windows --> preferences --> files and editors --> XML catalog --> Add
Location: equal to the path in Step 6
Key: equals-// Apache Software Foundation // DTD struts configuration 2.0 // en
Click OK !!!!!!!!!!