struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <hrab...@gmail.com>
Subject Re: forward
Date Mon, 14 Mar 2005 16:07:13 GMT
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 <sudipx@gmail.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message