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