2009/2/23 PEGASUS84 <pegasu...@hotmail.it>:
>
> today my question is:"How to create a back button wirh struts 2?"
> i used this code  <s:submit value="Indietro"
> action="javascript:history.back();"/>

Don't do it, since using Javascript code to get "back" will lead to
inconsistencies during the navigation: what if you stumble on that
page from an external website? Don't say it's impossible, because (for
the Murphy's law) it will *always* happen.
Usually this problem is resolved by identifying the action where you
are coming from, and using it instead of the "back" Javascript code.

Antonio

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

Reply via email to