Hi,

In the place that returns the forward, you can create a
new ActionForward dynamically. For your example,

return new ActionForward( mapping.findForward("success").getPath() +
"?type=initial" );

HTH
Ronaldo

> -----Ursprüngliche Nachricht-----
> Von: Alex Paransky [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 17. Januar 2002 09:18
> An: 'Struts Users'
> Betreff: Forwarding from a FormAction with parameters...
> 
> 
> I have an action, which upon success needs to forward to another page.
> Common enough, I made the following struts-config.xml entry:
> 
> <action
>    ...
>   <forward name="success" path="/public/registerSuccess.html"/>
> </action>
> 
> However, I need to pass parameters to the 
> registerSuccess.html, so the final
> URL should be:
> 
> registerSuccess.html?type=initial
> 
> Is there a way to do this and avoid having to hardcode the 
> URL and appending
> of the parameters in the Action?
> 
> -AP_
> www: http://www.alexparansky.com
> 
> PS: I am sorry if this has been asked before, but I could not 
> find where I
> can search the list for previously posted messages.
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

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

Reply via email to