1. Open the myeclipse Development Environment (My myeclipse version is 8.5) and create a new web project (all the processes will be shown in the figure ), then window-> preferences-> Server-> Tomcat-> Tomcat6.0, select Enable, and find the tomcat directory you have installed. Click OK
2. Click window-> preference-> java-> Installed Jres-> and add your jdk location (My ID is D: \ java)-> finish
3, copy struts configuration file struts. xml to the new project src, the file in: http://pan.baidu.com/s/1qWPPaig Baidu Network Disk
4, struts environment installation jar file (Class Library): http://pan.baidu.com/s/1zTeYq Baidu Network Disk
5. replace all the code in web. xml under the WebRoot-> WEB-INF:
index.jsp
struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
struts2
/*
Here we need to rename index. jsp to Hello. jsp (because the above struts. xml is Hello. jsp)
Then enter: http: // localhost: 8888/Struts2_0100_Introduction/hello. action in the browser (because there is a namespace = "/" in struts. xml)
The output solution is:
==================== The steps for the intermediate process are as follows: <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20140310/20140310091719122.jpg" alt = "\">