1. Add struts2.1. Struts2 Core Library.
2. Write a JSP page to add a action,struts.xml add map.
3. Run the test.
4. Add spring3.0. Spring 3.0 Core lib, Spring 3.0 Web Lib.
Open the configuration file, Web. XML, and add the following configuration line.
<!--Spring configuration and monitoring start-
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/web-inf/classes/application*. XML</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!--End--
5. Add Reference Struts2 Spring Libraries.
6. Add various jar packages to Lib according to the console prompts.
7.applicationcontext.xml Add mappings, struts.xml modify the mappings.
1) appears there is no Action mapped for namespace [/] and Action name [Login] associated with context path [/eprint] Error
Check Struts.xml and Applicationcontext.xml;
Make sure that the Struts.xml file under Web-inf is the same as the Struts.xml under SRC classes
Basic methods of building SSH Web site