You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Praveer Mathur <pr...@delhi.tcs.co.in> on 2002/05/28 07:44:45 UTC

refreshing screens that use struts

Hi Group,

We are using Apache struts framework for our application.
What happens is, irrespective of the *.do called, my browser URL always
stays as the first *.do called in application i.e. login.do. Now, whenever
the browser refresh button is pressed, irrespective of the screen currently
being displayed, I get the first screen of my application.

To avoid this, we either need to trap the browser 'Refresh' button and call
the appropriate *.do ourselves or, set the browser URL to the actual *.do it
called last.

>From what I have found on the net, it's not possible to trap the browser
'Refresh'. Is there any setting in any file of struts or anywhere else to do
the latter?


Regards,
Praveer


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: refreshing screens that use struts

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
This is a struts-user question, but....

set redirect="true" on your action forwards.  There are other
implications/caveats to this like not being able to get at request variables
that were set before (because its another request, of course).

    Erik


----- Original Message -----
From: "Praveer Mathur" <pr...@delhi.tcs.co.in>
To: "Struts Developers List" <st...@jakarta.apache.org>
Sent: Tuesday, May 28, 2002 1:44 AM
Subject: refreshing screens that use struts


> Hi Group,
>
> We are using Apache struts framework for our application.
> What happens is, irrespective of the *.do called, my browser URL always
> stays as the first *.do called in application i.e. login.do. Now, whenever
> the browser refresh button is pressed, irrespective of the screen
currently
> being displayed, I get the first screen of my application.
>
> To avoid this, we either need to trap the browser 'Refresh' button and
call
> the appropriate *.do ourselves or, set the browser URL to the actual *.do
it
> called last.
>
> >From what I have found on the net, it's not possible to trap the browser
> 'Refresh'. Is there any setting in any file of struts or anywhere else to
do
> the latter?
>
>
> Regards,
> Praveer
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>