开发者

What is wrong with this struts-config.xml?

Getting the 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/RegistrationSu开发者_运维百科ccess.jsp" />
            </action>

        </action-mappings>

        <message-resources parameter="resources.Application" />

    </struts-config>


Do you have the servlet mapping setup in the 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 the section on "configuring your application for modules" in the docs


Nothing seems to be wrong. Is your message resource present under WEB-INF/classes/resources/Application.properties?


Got the error.

Just a typo in web.xml file.

<servlet-class>org.**apche**.struts.action.ActionServlet</servlet-class>

Thanks anyways guys.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜