No, struts doesn't support it (as far as I know) but it's really easy to
implement.
If you have something like a baseaction (an action all your actions extend)
or your own controller servlet just do:

req.getSession.addAttribute("lastAction",
"/<your_app_path>/<your_struts_servlet_mapping>"+req.getPathInfo()); 

In your jsp simply put: 
<a href="<bean:write name="lastAction">Back</a>

Regards
Leon

> -----Ursprüngliche Nachricht-----
> Von: jonathan gilmore [mailto:[EMAIL PROTECTED] 
> Gesendet: Samstag, 27. August 2005 12:42
> An: user@struts.apache.org
> Betreff: Navigating back to a previous page 
> 
> 
> I have a common screen that is navigated to by many other 
> screens.  Does Struts have support for remembering the 
> previous screen so that my common screen needs only one 
> 'back' button to return the user to their original location?
> 
> I have looked through the docs and havn't found anything.
> 
> Any comments much appreciated
> 
> 
> 
> ---------------------------------------------------------------------
> 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