It is important to emphasize that the integration of struts2.3.20 under the Eclipse tool instead of MyEclipse add support for struts2-MyEclipse can easily add support for struts2 in the project. Online random Search A lot of information, such as http://jingyan.baidu.com/article/93f9803fe1acefe0e46f55fd.html this page is good ~
It is important to note that eclipse can accurately support the detailed version of STRUTS2, such as the struts2.3.20 here, while MyEclipse can easily support struts2, but the individual control of the version is not very accurate, This depends on the version of MyEclipse, some support 2.1, some support 2.2 ...
I believe everyone in the development process, if because the jar is introduced incorrectly, cause Tomcat frequently throw exception is a very uncomfortable thing ~ to solve it is more troublesome, I do not use the maven~
Here's how to integrate struts2.3.20~ in eclipse
Open Eclipse's Window menu--->preference--->java--->build Path--->user Libraries--->new
Enter the user library name in the popup dialog box, for example, click OK after struts2.3.20 .
Click on the right side of the window add External JARs
Navigate to your own download of the extracted struts2.3.20 jar directory
Which jar packages do you need to add?
1. Add all the jar packages: it is verified that during the debug project, Tomcat will report all kinds of inexplicable exceptions during the startup process, failing
2, according to the network said, usually need to load 5 jar package, verified, failed
3, here say I practice successful need to introduce jar package, a total of 9:
Commons-lang3-3.2.jar
Freemarker-2.3.19.jar
Ongl-3.0.6.jar
Struts2-core-2.3.20.jar
Xwork-core-2.3.20.jar
Javassist-3.11.0.ga.jar
Commons-io-2.2.jar
Commons-fileupload-1.3.1.jar
Stuts2-json-plugin-2.3.20.jar
Although the minimum subset is not guaranteed, it is successful after a lengthy configuration exploration
After the above steps have been completed, right-click on the project name to select
Build Path--->configure build path---> Select the Libraries tab in the upper right---> select Add Libraries in the right
In the pop-up window, select User Library--->next
You will see the user libraries that we created earlier:struts2.3.20, after the check--->finish
So far, the integration of struts2.3.20~ in Eclipse has been successful
The struts2.3.20 version can be downloaded from my resources http://download.csdn.net/detail/tterminator/8653077
Eclipse Integration struts2.3.20