Fix Struts2 "There is no Action mapped for Namespace/and action name" issue

Source: Internet
Author: User

The "There is no action mapped for Namespace/and action name" issue was encountered while configuring the Struts2 starter demo, and some information was checked, but the problem was not completely resolved because there are many reasons for this problem.

For example, the blogger's article mentions the https://www.cnblogs.com/GeekRegister/articles/4949441.html

I'll add some of the pits found during the commissioning process:

"There is no action mapped for Namespace/and action name" issue


1. <action name= "index" > here "index" cannot be a slash, slash in "Http://localhost/strutsDemo/index" path cannot access


2. Does not match the Tomcat server, the project is built to run the server directly, then the server does not have a new project, Direct Point project, right-click Run as--run on server, to resolve


3. The most pit,,, after deleting the project in the Tomcat server in Eclipse, add in, also reported this error, this question for what reason do not know, the solution is to delete the well-equipped Tomcat in Eclipse, re-match

<Struts>    < Packagename= "Actions"extends= "Struts-default">        <Actionname= "Index">            <result>/index.jsp</result>        </Action>        </ Package>          </Struts>

Fix Struts2 "There is no Action mapped for Namespace/and action name" issue

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.