IL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Back button without getting Page expired
Date: Thu, 14 Nov 2002 13:02:56 +0100
2002. november 14. 12:56 dátummal L Teitsma ezt í
2002. november 14. 12:56 dátummal L Teitsma ezt írtad:
> I have to set nocache to true, because some of my Actions aren't executed
> because they or their URL's are cached. The consequence is that the
> back-button on my errorpage results in a "Page expired". This because it a
> javascript:history
[mailto:gdelgado@;oceanobjects.com]
Sent: Thursday, November 07, 2002 11:54 AM
To: Struts Users Mailing List
Subject: Re: back button
Can the isTokenValid and saveToken be in the same Action ?
Gus Delgado wrote:
> I'm trying to use the saveToken function but is not working here is
> wha
Else, there isn't a match with the token which mean out of
sync
Then you can handle the condition as if it is out of sync.
Hope this would help.
danny
-Original Message-
From: Gus Delgado [mailto:gdelgado@;oceanobjects.com] Sent: Wednesday,
October 30, 2002 8:49 AM
To: Struts Users Ma
an handle the condition as if it is out of sync.
Hope this would help.
danny
-Original Message-
From: Gus Delgado [mailto:gdelgado@;oceanobjects.com]
Sent: Wednesday, October 30, 2002 8:49 AM
To: Struts Users Mailing List
Subject: Re: back button
please explain the controller to no-cache
mean out of
sync
Then you can handle the condition as if it is out of sync.
Hope this would help.
danny
-Original Message-
From: Gus Delgado [mailto:gdelgado@;oceanobjects.com]
Sent: Wednesday, October 30, 2002 8:49 AM
To: Struts Users Mailing List
Subject: Re: back button
please explai
7:29 AM
To: [EMAIL PROTECTED]
Subject: Re: back button
That is an absolutely hideous solution to the problem. Breaking the user's
back button will only make them angry.
David
From: "Affan Qureshi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" &
Use transaction token to guaranty your transaction. And don't forget
To set your controller to no-cache.
-Original Message-
From: David Graham [mailto:dgraham1980@;hotmail.com]
Sent: Wednesday, October 30, 2002 7:29 AM
To: [EMAIL PROTECTED]
Subject: Re: back button
That
Responses below. I actually marked the quotes this time, sorry for forgetting
on my last. :(
"David Graham" <[EMAIL PROTECTED]> wrote:
> That is an absolutely hideous solution to the problem. Breaking
> the user's back button will only make them angry.
I agree, though I see attempts at just su
That is an absolutely hideous solution to the problem. Breaking the user's
back button will only make them angry.
David
From: "Affan Qureshi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing L
You can disable the back button by using JavaScript history.forward() at the
top of your page. But i dont know if that solves your problem.
- Original Message -
From: "Gus Delgado" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 6:3
You can use Action.saveToken(...) to create a transaction in the first
action.
Then you use in your last action Action.isTokenValid(...) to verify if the
user can commit his response.
if(isTokenValid(...)){
// do your validation
// if validation is done successfully
re
t; <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 8:55 PM
Subject: RE: Back Button Shown 'Page Expired' on IE . What really
happens?
> No, this has nothing to do with no-cache setting. Even with Struts
setting
> for the controller setting to be no-cache, I
hy it
happens sometime with form submittion, especially file upload.
Thanks,
danny
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 11:43 AM
To: Struts Users Mailing List
Subject: Re: Back Button Shown 'Page Expired' o
Hi,
check if u have following lines in your html
or following code in your jsp
<%response.setHeader("Cache-Control","no-store");%>
if yes, then it tells the browser that is should not
load the page from cache and load a fresh page , and
so u get that message
Ashish
--- "Trieu, Danny" <[EMAIL P
Location.replace worked perfectly. Thanks.
-Original Message-
From: Bartley, Chris P [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 6:22 PM
To: 'Struts Users Mailing List'
Subject: RE: Back button skip a page?
Check out the javascript method "location.repla
Check out the javascript method "location.replace()"...i think that'll do
exactly whatcha want.
If i remember/understand correctly, i think your wait page could do a
location.replace("results.htm");
So, then, on results.htm, clicking the back button should indeed go to the
form page since the
You are trying to change the behavior of the users browser.
My best advice
Dont do that!
Maybe you can salvage a hack from this
http://developer.irt.org/script/311.htm
Best of luck!!!
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network
Maybe in your "show results" action, a session variable can be set that the
person saw the results. Then if they go to the "Request is being processed"
page, the page can check to see the the results were seen, and if yes,
automatically redirect to the results page. You'll probably have to make
It should be pretty easy:
1. On your JSP page, make a submit button that is named "back"
2. In your action class, have something like this near the top of your
perform() method:
if (request.getParameter("back") != null)
{
// redirect them to some previous page
}
Just make sure that,
George,
> Does anyone know how to code a "Back" button -- one that works like the
> I.E. "Back" toolbar button? I currently use one that requires JavaScript
> and would like to switch to one that works with Struts/JSP but is not
> dependent upon JavaScript.
There are methods (such as keeping a s
The client stores the history list, and so you need to use a client-side
technique to do anything like this. Struts is not really involved.
There's often been talk about keeping your own history list in the
user's session, but I don't remember ever seeing an implementation
posted.
-- Ted Huste
see a good reference implementation in
David M. Geary's book "advanced Java Server Pages"
-Original Message-
From: Rob Breeds [mailto:[EMAIL PROTECTED]]
Sent: Montag, 26. November 2001 12:08
To: Struts Users Mailing List
Subject: Re: back button causes form resubmit
And
And the answer was...
use a transaction token! The archives REALLY are useful sometimes! :)
Rob
Rob
-
From: MacKellar, Kimberly [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 6:01 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Back Button in Struts
Where do you need to set these header values (Action, ActionServlet...)? I
added them to my Action classes and it doesn't seem to
, Kimberly
Sent: Monday, August 20, 2001 5:01 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Back Button in Struts
Where do you need to set these header values (Action, ActionServlet...)? I
added them to my Action classes and it doesn't seem to do anything.
Kim MacKellar
-Original Me
PROTECTED]'
Subject: RE: Back Button in Struts
You can also look at putting in the Expires HTTP Header parameter to force
the client to hit the server each time. This forces the back button to go
back to the webserver.
//These Response Headers prevent Client side cac
Original Message-
From: Kyle Robinson [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Back Button in Struts
You can't really use the javascript:history.back() function to hit the
Action class as the history.back does not e
You can't really use the javascript:history.back() function to hit the
Action class as the history.back does not even hit the webserver. It is an
internal "client" operation, like most javascript is.
One solution you might want to try is to create a stack object for each
session to track what "a
29 matches
Mail list logo