struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Jouravlev" <>
Subject Re: Why Back Button pertube an Action ?
Date Mon, 21 Aug 2006 16:40:51 GMT
On 8/21/06, <> wrote:
> Hello ,
> I search a lot but i don't find so i write to you.

Please use Struts Users Mailing List ( for
questions. If you want to reply, please do so to the user list.

> If you have experience this problem , thank for your help
> I have a problem with Back Button of the navigator with a Struts application :
> When i make an action A (who forward to a jsp where i a have B anb C action).
> If I make B (who forward to another jsp) and then if i go back with navigator back button
and then if try to make C action , it make B in the place of C.

HTTP sniffers and trace messages usually help.

> I use with sucess the framework of Mandfred Wollf :
> to go back in struts
application whith a Button in a jsp.

I believe you should address your question to the author of this
framework. Also, you cannot go back using just the server-side code.
At best you can go to the same location that has been requested prior
to current location, but this is not exactly going back, the browser
history object still grows. To actually go back you need to use
something like history.back() on a client.

I haven't look at the code of the framework that you use, but it may
try to control the locations that are allowed for a particular
location. Say, it allows you to go to B and C from A, but it does not
allow to go to C from B. When you click Back button in the browser
from B, browser shows you a previous page. If that page is cached,
then server is not notified, so the server thinks that the current
page is still B. Then you try to go to C, and the framework that you
use does not allow you to do that.

> But , my superior will we make back on the browser !

I think this is a reasonable requirement.

> It's that a big failure of Struts or there is an issue ?

The observed behavior is not a failure of Struts. Most likely the
problem is in the framework that you use or in the way you use it.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message