You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Derek Richardson <De...@appiancorp.com> on 2003/02/21 02:33:35 UTC
REPOST: Modules and ForwardAction - Struts Bug?
I am submitting this one more time for input before it goes into bugzilla.
> -----Original Message-----
> From: Derek Richardson
> Sent: Tuesday, February 18, 2003 4:28 PM
> To: Struts Users Mailing List
> Subject: Modules and ForwardAction
>
>
> Is there a known issue with
> org.apache.struts.actions.ForwardAction not prepending the
> module path to the value of "parameter" in Struts 1.1b3?
>
> My original struts-config.xml includes:
>
> <action path="/documentdiscussion3"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/a/threads/documentdiscussion3.jspx" />
>
> Which, when called, results in:
>
> HTTP Status 404 - /ap/a/threads/documentdiscussion3.jspx
>
> --------------------------------------------------------------
> ------------------
>
> type Status report
>
> message /ap/a/threads/documentdiscussion3.jspx
>
> description The requested resource
> (/ap/a/threads/documentdiscussion3.jspx) is not available.
>
> When changed to:
>
> <action path="/documentdiscussion3"
> type="appian.ap2.a.threads.action.SuccessForward">
> <forward name="success"
> path="/a/threads/documentdiscussion3.jspx" />
> </action>
>
> Where SuccessForward is:
>
> public class SuccessForward extends Action {
> public ActionForward execute(ActionMapping
> mapping,ActionForm form,HttpServletRequest
> request,HttpServletResponse response)
> throws Exception {
> return mapping.findForward("success");
> }
> }
>
> The results are:
>
> HTTP Status 404 - /ap/dt/a/threads/documentdiscussion3.jspx
>
> --------------------------------------------------------------
> ------------------
>
> type Status report
>
> message /ap/dt/a/threads/documentdiscussion3.jspx
>
> description The requested resource
> (/ap/dt/a/threads/documentdiscussion3.jspx) is not available.
>
> The application is "ap," the module is "dt", the second path
> is what I want, but I want it without adding another class in
> addition to ForwardAction. The ".jspx" is an intentional
> error introduced to get tomcat to throw a 404 and display the
> path when otherwise the request would be correct. The point
> of interest is why "dt" shows up in one and not the other.
>
> Please let me know if this has already been addressed in the
> nightly build or, if not, when it will be. Assuming that
> there is not a problem between chair and keyboard on my end. :)
>
> Thanks,
>
> Derek Richardson
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: REPOST: Modules and ForwardAction - Struts Bug?
Posted by Eddie Bush <ek...@swbell.net>.
If you read the javadoc, you'll find that ForwardAction is *CONTEXT
RELATIVE*. No, it's not a bug. That's how it's supposed to work.
Derek Richardson wrote:
>I am submitting this one more time for input before it goes into bugzilla.
>
--
Eddie Bush
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org