Struts2 exception: HTTP Status 404-/struts2/book/addbook.action

Source: Internet
Author: User

HTTP Status 404-/struts2/book/addbook.action

If this error occurs in the access path in the STRUTS2 framework, there are two possible reasons for this:

1. Path error, that is, the Name property of the action tag and the path of the package's namespace attribute are problematic.

2. The STRUTS2 filter is not configured in Web. Xml. (because the STRUTS2 process must go through the filter first, if there is no filter configured then the problem will occur)

1 <Filter>2     <Filter-name>Struts2</Filter-name>3     <Filter-class>Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</Filter-class>4 </Filter>5 6 <filter-mapping>7     <Filter-name>Struts2</Filter-name>8     <Url-pattern>/*</Url-pattern>9 </filter-mapping>

Struts2 exception: HTTP Status 404-/struts2/book/addbook.action

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.