You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adam Hardy <ad...@cyberspaceroad.com> on 2002/05/21 08:35:06 UTC

Re: Forwarding from an action to another action and passing parameter s... Help!

What's your request.getAttribute() code in Action2? The Action1 looks OK.



Munchenberg, Jerome (DEH) wrote:

>Hiya,
>
>I'm using Struts 1.0.2.
>
>I have an action (Action1) which must forward to another action (Action2)
>and pass it a parameter aka:
>
>*** Action1 ***
>
>      // Display accession report for selected accession
>      request.setAttribute("accession", accessionId);
>      return mapping.findForward("accessionReport");
>
>Action2 has an associated action form with methods to get/set an accession.
>
>For some reason, "accession" does not seem to get passed to (and set in)
>Action2.
>
>Am I doing the right thing here? If so, why don't it work! If not, what else
>can I do?
>
>Help!
>
>Jerome
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>