Jsp 这个struts-config.xml有什么问题?
获取以下错误: java.lang.NullPointerException:未找到模块“null”Jsp 这个struts-config.xml有什么问题?,jsp,struts,struts-1,struts-config,Jsp,Struts,Struts 1,Struts Config,获取以下错误: java.lang.NullPointerException:未找到模块“null” <?xml version="1.0" encoding="UTF-8" ?> <struts-config> <form-beans> <form-bean name="RegistrationForm" type="com.testapp.actionform.RegistrationForm"
<?xml version="1.0" encoding="UTF-8" ?>
<struts-config>
<form-beans>
<form-bean name="RegistrationForm" type="com.testapp.actionform.RegistrationForm" />
</form-beans>
<global-exceptions>
</global-exceptions>
<global-forwards>
</global-forwards>
<action-mappings>
<action path="/Registration" type="com.testapp.action.RegistrationAction" name="RegistrationForm" scope="request" validate="false" input="index.jsp" >
<forward name="success" path="/pages/RegistrationSuccess.jsp" />
</action>
</action-mappings>
<message-resources parameter="resources.Application" />
</struts-config>
似乎没有什么问题。您的消息资源是否位于WEB-INF/classes/resources/Application.properties下?您是否在WEB.xml中设置了servlet映射
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
行动
org.apache.struts.action.ActionServlet
配置
/WEB-INF/struts-config.xml
一,
请参阅“为模块配置您的应用程序”一节中的错误信息
只是web.xml文件中的一个输入错误
<servlet-class>org.**apche**.struts.action.ActionServlet</servlet-class>
org.*apche**.struts.action.ActionServlet
无论如何,谢谢你们。是的。我得到这个愚蠢的“空”模块错误。真的想自杀。你能给我们提供完整的stacktrace吗?我想他自杀了:)