When building the STRUTS2 framework, the JSP page
<s:form id= "Form1" Name= "Form1" namespace= "/login" action= "Loginaction_home" target= "_parent" method= "POST" >
If the Action property above namespace= "/login" is configured in the Struts.xml file, you cannot add the. Action suffix
If you do not configure namespace in the Struts.xml file, you need to add the. Action
* index.jsp Direct point to login.jsp, by visiting index.jsp, click "Login", the result will be error:
* ERROR: There is no Action mapped for namespace [/] and Action name [Loginaction_home] associated with context path [/itcast1 109_project]. -[Unknown Location]
* Reason: index.jsp is the root directory of the project directory, resulting in the index.jsp page is not recognized namespace
There is no action mapped for Namespace/and action name. -[Unknown Location]