Hi, I'm trying to use path extra info to pass data into my JSPs and actions and I'm getting some odd behaviour. If I put this into struts-config.xml:

        <action path="/foo/*"
                type="org.apache.struts.actions.ForwardAction"
                parameter="/foo.jsp?path={1}">
        </action>

if works fine, but what I actually want to do is more like:

        <action path="/foo/*"
                type="org.apache.struts.actions.ForwardAction"
                parameter="/foo.jsp">
            <set-property property="path" value="{1}"/>
        </action>

My intention was to replace ForwardAction with an action that wraps the servlet request so that HttpServletRequest#getPathInfo() returns the value of the 'path' property.

But as soon as I add the <set-property/> tag to the configuration, Struts starts returning a 404 response for the action mapping. Why does it do that? Shouldn't the behaviour be the same with or without the <set-property/> element?

Is there another way to use path extra info in Struts?

L.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to