We are the Java EE----S2SH as a specialized course to learn. The books used were published in 2011. The struts2 version described above is struts 2.0.14, according to the book of the URL http://struts.apache.org/download.cgi in the current (2015) can be downloaded to the version is 2.3.20 version. But according to the book, the 5 core jar files:
Conmmons-loggin-1.0.4.jar,
Freemarker-2.3.8.jar,
Ognl-2.6.11.jar,
Struts2-core-2.0.14.jar
and Xwork-2.0.7.jar,
Put these 5 files in the Web-inf/lib directory, struts2 but not normal start-up operation, or is quite a person to wonder.
By the way, the upgrade version fixes the vulnerability compared to the previous version, which is one reason we use the new version.
Helpless had to in the Internet widely read blog material, East said a little, West said a little, just really like struts2 under Eclipse run up. What's more, seeing a blog completely doesn't work, it's a mistake, and another mistake comes. All the way down, and finally the success of the stone struts2 run up. Here's how many files you need to join.
In addition to the four files mentioned above, it is also necessary to add four files:
Commons-fileupload-1.3.1.jar,
Commons-io.2.2.jar,
Commons-lang3-3.2jar,
Javaassist-3.11.0.ga.jar.
The first three of these four files are easily found in the Lib directory of the files we download, but the last one is somewhat odd in the "\struts-2.3.20-all\struts-2.3.20\apps\" The Struts-blank.war compression package in the directory can be opened using any of the compression software. In the inside of the Web-inf/lib directory, find the Javaassist-3.11.0.ga.jar we need. In the beginner stage, for the textbook on the light of the struts content of the example, the above mentioned on these packets are no problem. If one of the 5 core libraries in the book is not small, then the nine jar packages I mentioned are necessary for struts to run.
Hope to have help for beginners!
This article is from the "ocean currents of Stone" blog, reproduced please contact the author!
STRUTS2 Configuration in Eclipse