You can create a new ActionForward object, copy the data from the
original forward, and modify the path of the new object.
A quick way would be to add the ActionRedirect class to your code and use that:
http://svn.apache.org/viewcvs.cgi/struts/core/trunk/src/share/org/apache/struts/action/ActionRedirect.java?rev=153901&view=markup
Usage examples are given in the javadoc.

Hubert

On Mon, 14 Mar 2005 08:17:02 -0600, sudip shrestha <[EMAIL PROTECTED]> wrote:
> I have certain situations when I have to forward the web page upon
> success to a certaion action or to a page with url such that it has a
> query string with it: e.g.:
> "/actions/myActionxx.do?wId=123" or "/pages/myPagexx.do?wId=123"
> 
> Now, I can't provide the query strings with ids in struts-config.xml
> file as the ids change depending upon the situation. So was wondering
> if there was any other way around to it?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to