You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Henry Voyer <he...@hotmail.com> on 2003/05/02 22:09:08 UTC
Q: Regarding browser url when action called
Hi everyone.
My problem : When i call an action that does a forward the last URL path
shown on my browswer is the one from the action and not the forward.
I have seen sites using struts that the last URL is the forward one.
Where can i configure this?
EX. --> action is called /add/user?id=1
after it finish it forward to /Main
but the url shown is /add/user?id=1
i would like to have /Main shown
Thanks a lot.
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Regarding browser url when action called
Posted by Ian Hunter <ih...@hunterweb.net>.
redirect=true in your action in struts-config
HOWEVER, request attributes, including errors and messages, will be lost.
The update the url, you have to send an HTTP redirect to the browser, and
then it's a new request...
----- Original Message -----
From: "Henry Voyer" <he...@hotmail.com>
To: <st...@jakarta.apache.org>
Sent: Friday, May 02, 2003 4:09 PM
Subject: Q: Regarding browser url when action called
>
> Hi everyone.
>
> My problem : When i call an action that does a forward the last URL path
> shown on my browswer is the one from the action and not the forward.
>
> I have seen sites using struts that the last URL is the forward one.
>
> Where can i configure this?
>
>
> EX. --> action is called /add/user?id=1
> after it finish it forward to /Main
> but the url shown is /add/user?id=1
> i would like to have /Main shown
>
> Thanks a lot.
>
>
>
>
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> 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: Q: Regarding browser url when action called
Posted by John M Flinchbaugh <gl...@butterfly.hjsoft.com>.
On Fri, May 02, 2003 at 08:09:08PM +0000, Henry Voyer wrote:
> My problem : When i call an action that does a forward the last URL
path
> shown on my browswer is the one from the action and not the forward.
> I have seen sites using struts that the last URL is the forward one.
> Where can i configure this?
> EX. --> action is called /add/user?id=1
> after it finish it forward to /Main
> but the url shown is /add/user?id=1
> i would like to have /Main shown
specify the redirect = "true" attribute on your <forward> elements in
struts-config.xml.
(yay, i can answer a question. i'm learning something!)
--
____________________}John Flinchbaugh{______________________
| glynis@hjsoft.com http://www.hjsoft.com/~glynis/ |
~~Powered by Linux: Reboots are for hardware upgrades only~~