One, download struts2 corresponding jar package, (http://struts.apache.org/download.cgi#struts2514.1), I generally download struts2.3 version of the
Second, open eclipse new dynamic Web Project
Third, the resulting project folder is as follows
Iv. configuration of various documents (Web.xml/struts.xml)
1. Configure the Web. xml file (the automatically generated file at the beginning of the project at webcontent/ Web-inf path) Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
The Struts.xml file created under the SRC directory of Java resourses can also be copied directly from Struts.xml under Struts1\apps\struts2-blank\web-inf\classes.
Six, write Java class
Seven, write HTML page (do not like to write Jsp,java syntax and HTML code are mixed together, front and rear separation is the right path, personal view)
Eight, start the project, see the actual effect
Build a struts2 environment with eclipse