Struts Javax.Servlet.ServletException: Cannot Find ActionMappings OR ActionFORMBeans Collection Error
Debugging a Struts program that verifies the label has encountered such a problem, checking N places, did not find an error, starting online search. It is found that this is a common problem. There are many situations that will lead to this problem, but roughly the following cases:
1. Web.xml is not initialization problem
init-param>
init-param>
servlet>
Less than one
This begins not loading this class, there is no initialization Struts-config.xml, so I can't find the ActionMAppings or ActionFormBeans Collection.
This error is that if you start accessing the login.jsp error, there is no error after manually accessing login.do. I just encountered this situation.
PS: Web.xml may not define Tag Library, it is also possible to resolve the Struts example.
2. Struts-config.xml problem
Mainly Action's Path also has corresponding issues with FORMBEAN
TYPE = "com.javapro.struts.loginform" /> form-beans> Path = "/ login" TYPE = "com.javapro.struts.loginaction" Name = "loginform" INPUT = "/ login.jsp" Unknown = "true"> action> The above is a correct correspondence, paying attention to the case PS: There is also a format that is incorrectly causing the configuration that cannot be loaded correctly, and you can see an error in the console or log file. For example, there is no end label, the property name is wrong, etc. There is also if you copy a book, the version used by the book is older, it is possible
"- // Apache Software Foundation // DTD Struts Configuration 1.1 // En" " http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd "> It may also have this problem in 1.0, web.xml, and refer to the example of your version. 3. JAR package is not full or version is wrong It is also possible to cause this issue, just copy from the Stuts example. 4. Compilation problem It is possible that Action and FormBean are not compiled, and there will be this problem, check if there is no corresponding Class file. The Class path is not possible to cause this problem.