You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by t t <wa...@yahoo.com> on 2004/10/13 18:08:09 UTC

Newbie Question: how to implement a "Back" button or link ...?

Hi, all,
How to implement a "Back" button or link in the
Struts' jsp file?
Thanks.


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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


Re: Newbie Question: how to implement a "Back" button or link ...?

Posted by Erik Weber <er...@mindspring.com>.
There is more than one way to do it.

One way to do it on the server side is to track user navigation by 
storing the (relative) URL of each page view (or some subset of them) as 
an HttpSession attribute. Then your "back" button could trigger a Struts 
action that forwards or redirects the user to whichever URL was stored 
as the session attribute for "last viewed page". Using this strategy has 
the advantage of allowing you to make sure the user sees valid data 
(versus using the browser's own back button). It has the disadvantage of 
programming complexity and probable extra memory consumption (but not 
necessarily).

Erik



t t wrote:

>Hi, all,
>How to implement a "Back" button or link in the
>Struts' jsp file?
>Thanks.
>
>
>		
>_______________________________
>Do you Yahoo!?
>Declare Yourself - Register online to vote today!
>http://vote.yahoo.com
>
>---------------------------------------------------------------------
>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