« Return to Thread: Struts 2 Plug-in and JSP 404

Struts 2 Plug-in and JSP 404

by stanlick :: Rate this Message:

Reply to Author | View in Thread

I am working on a plug-in that needs to display a JSP.  I have the plug-in packaged with the following struts-plugin.xml, however, rather than the /pages/config.jsp page appearing, I get a 404! The folder "pages" is in the root of my config-plugin.jar file and I have changed the result by both including and omitting the leading slash and I get a 404 either way.  My action is returning SUCCESS as verified through the debugger.  Does anyone see anything glaringly wrong?  

<struts>
        <package name="config" namespace="/config" extends="struts-default">
                <action name="maintainConfig_*"
                        class="com.erac.wsf.action.ConfigAction" method="{1}">
                        <result>/pages/config.jsp</result>
                        <result name="error">/pages/config.jsp</result>
                </action>
        </package>
</struts>

Peace,
Scott

 « Return to Thread: Struts 2 Plug-in and JSP 404