jsp - What is wrong with this struts-config.xml? -
getting following error : java.lang.nullpointerexception: module 'null' not found.
<?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>
do have servlet mapping setup in web.xml
<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>
1
see section on "configuring application modules" in docs
Comments
Post a Comment