Basic methods of building SSH Web site

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.