Dear List,
I have to give my application users a way to navigate to the previous page
without using the browser back button. Program constraints prevent me from
using JavaScript to solve this. Because many JSP pages use the same Actions
I am unable to simply hard code the referring page
On Mon, 9 Feb 2004, Brian Ivey wrote:
Dear List,
I have to give my application users a way to navigate to the previous page
without using the browser back button. Program constraints prevent me from
using JavaScript to solve this. Because many JSP pages use the same Actions
I am unable
this path in each and every form bean
And when we get any errors we can redirect it to
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 12:20 AM
To: Struts Users Mailing List
Subject: Re: Supporting a back button without JavaScript
On Mon, 9
.
To: [EMAIL PROTECTED]
Subject: RE: Supporting a back button without JavaScript
James/Brian
I have thought of another way of doing this but please correct me if I'm
wrong Take a case I have a prepare1Action which forwards it to ABC.jsp
prepare2Action also forwarding it to ABC.jsp Then ABC.jsp
Hi,
I have a problem with a form and with Internet Explorer. Because the FROM
method is POST IE cannot go back to the previous page when I hit the
Back button, I get the error message (I translated it from German to
English):
Warning: Page is not valid any more.
I don't get this error
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your
mail and assure you of a response shortly.To help us serve you better, we would
request you to kindly mention your account number or any reference number you may have
in your future correspondence. Kindly
{ICICICARE#005-218-313}Page is not Valid Any
More error with IE with the Back button
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED]
We confirm receipt of your mail and assure you of a response
shortly.To help us serve you better, we would request you to
kindly mention your
PROTECTED]
--
-- -Original Message-
-- From: NRI Cell [mailto:[EMAIL PROTECTED]
-- Sent: Thursday, January 29, 2004 9:25 AM
-- To: Struts Users Mailing List
-- Subject: AUTO {ICICICARE#005-218-313}Page is not Valid Any
-- More error with IE with the Back button
--
--
-- Dear Sir
Hello
My apologies for asking a question from previous email but I so really need
an answer.
Currently when the operator presses/clicks back the form contents get set to
default values.
How does one skip the reset() method when activating the back button?
Many Thanks,
Martin Gainty
617-852-7822
Hi Khalid:
Thanks for your reply. I just found out some info. If I want to
force to send request upon the hitting back button I can put
following lines in my jsp and it does force back the request to
server.
% response.setHeader(Expires,0);response.setHeader(Cache-
Control,no-cache);%
Thanks
Hi All:
In IE when user hits back button then I want to
forward user to my main page. I want to do this in reset method of the form.
How can I
1)
forward using request object to forward to main page.
2)
Or redirect to main page
Note: At this time I am not executing action class
This is an age old questions. There are various javascript 'hacks' around. I
suggest google the following: javascript back button
the problem is that when you click on back button no server request is made,
the catched page froom history.back() (i think that is the method) is
displayed. So
Hi
I have a page which calls an action. Depending on certain condition I
will forward it to suitable pages. After this steps if user clicks the
Browser's back button, it gives typical browser error Warning: Page has
Expired (I am using IE). This happens especially after the validation
failure
Tie the back button to go.history(-1)
Regards,
Martin
- Original Message -
From: Manjunath Bhat [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 6:42 AM
Subject: Page expires when back button is pressed
Hi
I have a page which calls
My application has a sequence of pages that submit to a single ActionForm with
session scope. The problem I have is that if the user clicks the Back button any
previous ActionErrors are still displayed, even though the form fields may be
populated with valid values.
Is it possible to specify
]
Sent: Tuesday, December 02, 2003 12:31 PM
To: [EMAIL PROTECTED]
Subject: Session Scope ActionForm, ActionErrors and the Back Button
My application has a sequence of pages that submit to a single ActionForm
with
session scope. The problem I have is that if the user clicks the Back button
any
Topley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 1:31 PM
To: [EMAIL PROTECTED]
Subject: Session Scope ActionForm, ActionErrors and the Back Button
My application has a sequence of pages that submit to a single ActionForm
with
session scope. The problem I have is that if the user
Note that when you hit the Back button on a page not cached and retrieved by
a GET, the browser will perform a new request... If the page was retrieved
by a POST, the browser will display an error message or ask the user if he
wants to repost the form.
Hookom, Jacob [EMAIL PROTECTED] wrote
Dear all,
Question 1:
How to provide a Back button on a page?
Is there a html tag like the one for Cancel button: html:cancel ?
Question 2:
How to provide two submit buttons on one JSP page,
when click on the 1st button, the page is submitted to 1st action,
when click on the 2nd button, it's
AM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:Help please -- How to provide a Back button?
Dear all,
Question 1:
How to provide a Back button on a page?
Is there a html tag like the one
a href=javascript:history.go(-1)Back/a
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 3:25 PM
To: Struts Users Mailing List
Subject: Re: Help please -- How to provide a Back button?
for ur question 2:
you can use javascript
List
To: Struts Users Mailing List
[EMAIL PROTECTED]
cc:
Subject:Help please -- How to provide a Back button?
Dear all,
Question 1:
How to provide a Back button on a page?
Is there a html tag like the one for Cancel button
Thanks for your fast response, it's of GREAT help, thanks a lot my friend.
bruce
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 4:24 AM
Subject: Re: Help please -- How to provide a Back button?
for ur
Hi my friend, you solve my problem, thanks!!
bruce
- Original Message -
From: ishmael riles [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: ZYD [EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 5:11 AM
Subject: Re: Help please -- How to provide a Back button
thanks buddy!
- Original Message -
From: Jimmy Emmanual [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 4:44 AM
Subject: RE: Help please -- How to provide a Back button?
a href=javascript:history.go(-1)Back/a
-Original
: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:18 PM
Subject: Re: Is there a way to disable the browser's Back button without
sending an http request?
Hi Jing,
surely it is possible to solve your state problems with server-side
not go into the browser's
history or repeated by the back-button. From a security point of view
though, a browser is only a tool for doing HTTP operations, and hackers
or crackers can use other tools to do exactly what they want. That is
the open nature of the internet which no W3C spec
- Original Message -
From: Mike Kienenberger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 7:09 AM
Subject: Re: Is there a way to disable the browser's Back button
withoutsending an http request?
Jing Zhou [EMAIL PROTECTED] wrote:
When a user watches
Jing Zhou [EMAIL PROTECTED] wrote:
A similar question about your web application:
Assuming all pages are set to no-cached,
does it allow end users to continue the application flow after
the Page has Expired ... feedback?
I am interested in the answer to the second question and encourage
PROTECTED]
Sent: Thursday, 4 September 2003 23:03
To: Struts Users Mailing List; Mike Kienenberger
Subject: Re: Is there a way to disable the browser's Back button
withoutsending an http request?
- Original Message -
From: Mike Kienenberger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent
Jing Zhou [EMAIL PROTECTED] wrote:
A similar question about your web application:
Assuming all pages are set to no-cached,
does it allow end users to continue the application flow after
the Page has Expired ... feedback?
What do the users do when they get a 'Page Expired' notice? They either
It depends on how much control you have over the users' browsers, and
also how determined the users are to use their back-buttons.
You can do lots of stuff in javascript like opening a new browser window
without the button bar, or catching a back-button keypress and stuff
like that. Actually
Mailing List
Subject: Re: Is there a way to disable the browser's Back button without
sending an http request?
It depends on how much control you have over the users' browsers, and
also how determined the users are to use their back-buttons.
You can do lots of stuff in javascript like opening
Im using the location.replace() trick. Works ok though Id rather not have a
back button at all!
Id hate to think about doing it using jsp though.(or indeed any other serial
rendering mechanism).
One would need to replace every link with some custom tag - and where the
links themselves
the browser's Back button without
sending an http request?
Hi,
To disable the user from going back without sending an http request just
insert the following javascript line in each page:-
history.forward();
Regards,
Madhu
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent
I'm not quite sure what you are trying to achieve. Anyway, I think trying to
disable the back-button (for whatever reason) is the wrong way to go about
it. Simply put, any URL that the client visits, the client WILL be able to
revisit. A simple cut / paste of the URL before / after the submit
to disable the browser's Back button without
sending an http request?
It looks to me the answer is NO, although we could use Java script
location.replace('url'). But the statement sends out an http request.
I would like to know if there is a different answer to it.
Jing
Netspread Carrier
http
You can also include a line like this in each jsp:
window.history.forward(1);
This will effectively negate the back button.
BAL
From: Mark Galbreath [EMAIL PROTECTED]To: Struts Users Mailing
List [EMAIL PROTECTED], Jing Zhou [EMAIL PROTECTED]
Subject: RE: Is there a way to disable
To: [EMAIL PROTECTED]
Subject: RE: Is there a way to disable the browser's Back button without
sending an http request?
You can also include a line like this in each jsp:
window.history.forward(1);
This will effectively negate the back button.
BAL
From: Mark Galbreath [EMAIL PROTECTED]To: Struts
to disable the browser's Back button without
sending an http request?
You can also include a line like this in each jsp:
window.history.forward(1);
This will effectively negate the back button.
BAL
From: Mark Galbreath [EMAIL PROTECTED]To: Struts Users Mailing
List [EMAIL PROTECTED], Jing Zhou
We use the POST method for almost every web form in
wizard like applications with the internal forwarding mechanism.
If the browser's Back button could be disabled for the next page,
all bad things that destroy application states will be gone.
Token mechanism had been carefully examined. But I am
stored in the session.
Adam
On 09/03/2003 08:28 PM Jing Zhou wrote:
We use the POST method for almost every web form in
wizard like applications with the internal forwarding mechanism.
If the browser's Back button could be disabled for the next page,
all bad things that destroy application states
It looks to me the answer is NO, although we could use Java script
location.replace('url'). But the statement sends out an http request.
I would like to know if there is a different answer to it.
Jing
Netspread Carrier
http://www.netspread.com
Just invalidate the session when the user logs out.
Edgar
-Original Message-
From: Cezar Nasui [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 5:30 PM
To: 'Struts Users Mailing List'
Subject: RE: Whats the security trick for not permiting the
browser back button
Hi Edgar,
this is what I do but it will never diable the Back button.
By any chance did you tried to :
- do the log out then
- click browser's Back right to the first page after signup,
- do a Refresh and then
- try your links from this page.
Could you tell me the result please?
I looked at many
with some JavaScript you can erase the history of the Back button. I
don;t recall exaclty the code but I'll look for it. What I want to know is
if it's a good method as we know we shouldn't rely on user's settings (ex.
Javascript not enabled).
Cezar
-Original Message-
From: Henry Voyer
refresh problem I mentioned before
Cezar
-Original Message-
From: Brad Balmer [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 8:07 AM
To: Struts Users Mailing List
Subject: Re: Whats the security trick for not permiting the browser back
button on SignOut?
I ran into a similar
Hi everyone
I found the solution. Its related to the browser cached pages.
The trick is that in struts you specified to the controller not to let the
browser to cache the html pages of your apps. That way the browser has to
ask for the page every time that its been accessed. And in consequence,
Hi fellow Strutser
I have implemented securityFilter (http://securityFilter.org) in my struts
app.
But once i log off i can press the browsers back button and go back to the
users content page.
He cant do any action since the securityFilter dont let him but he can still
see the pages he
I am having a problem with users using the back button as a rewind button. I am sure
that this problem has been solved many times before. Anyone care to share any
techniques for preventing users from using doing harm by using the back button?
Hi,
I have struts 1.1b3 integrated with SecurityFilter using
CatalinaRealmAdapter. It works except of one case. After successfull
login, clicking back button and trying to login again results in
generating incorrect response path. E.g
we added some features recently.
I will look at it this weekend and possibly have a release to fix it in the
same time frame.
-Max
- Original Message -
From: Mark Zeltser [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 04, 2003 7:52 AM
Subject: SecurityFilter and back button
Hi,
I've read all the back button mails. Mine is this.
We have several drop-down lists that are populated with JSTL.
c:if test=${ID == 1 or ID == 2}
Show a certain drop-down list
/c:if
ID is in the session. After viewing the results of the submit a few times
when the user
A form based sequence token (as opposed to struts session based token)
reduces users frustration with the lack of a back button. If the sequence
tokens are form based users can wander to other parts of the application and
return to a still usable page. I have found the complete removal
From: Edgar Dollin [EMAIL PROTECTED]
Hello,
[ ... ] I have found the complete removal of the
back button a relatively high user frustration issue.
Yes, and in fact, it is not much safer as managing input validation with
only javascript code.
Never trust the client (browser) !
My 0.02 Euros
I've been known to discourage the use of the back button by opening my
apps in a browser window that doesn't have the usual location bar and back
button icons
This is why I use Opera :-).
Of course, it's incumbent upon the app developer to include enough nice
navigation controls in the page
Even same browsers on 2 different machines generate different result. So
use token to disable the Back behavior.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: March 10, 2003 5:17 PM
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms
Show us your JavaScript evil. My boss insists on using Back, I have to
give me a shock.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: March 10, 2003 9:39 PM
To: Struts Users Mailing List
Subject: RE: The Back button on on multi-page forms ??
snip
Remember
Does IRS give me a chance hitting Back, re-filing last year's tax form
and re-submitting it? :)
-Original Message-
From: Bueno Carlos M [mailto:[EMAIL PROTECTED]
Sent: March 10, 2003 10:27 PM
To: 'Struts Users Mailing List'
Subject: RE: The Back button on on multi-page forms ??
I
will use the back button, the browser will re-submit the
request to the server.
It can help to know where the user is in your webapp.
Arnaud
-Message d'origine-
De : apachep2 [mailto:[EMAIL PROTECTED]
Envoye : mardi 11 mars 2003 16:15
A : 'Struts Users Mailing List'
Objet : RE
: The Back button on on multi-page forms ??
Does IRS give me a chance hitting Back, re-filing last year's tax form
and re-submitting it? :)
-Original Message-
From: Bueno Carlos M [mailto:[EMAIL PROTECTED]
Sent: March 10, 2003 10:27 PM
To: 'Struts Users Mailing List'
Subject: RE
List
Subject: RE: The Back button on on multi-page forms ??
I remember an online banking app I used a few years back would open in a
chromeless window with headers stating do not click back or stop!...
(scary)
-Original Message-
From: apachep2 [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 11
'; [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms ??
Show us your JavaScript evil. My boss insists on using Back, I have to
give me a shock.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: March 10, 2003 9:39 PM
To: Struts Users Mailing List
Ah, use a cookie and you can do whatever you want with the bloody lamerz
that hit the back button!
Mark
(And don't even try to go to the what if they have JS turned off crap)
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 9:26 PM
To: Struts
March 2003 10:29
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms ??
Ah, use a cookie and you can do whatever you want with the bloody lamerz
that hit the back button!
Mark
(And don't even try to go to the what if they have JS turned off
To: Struts
Subject: RE: The Back button on on multi-page forms ??
m. cookies drool/
snip
(And don't even try to go to the what if they have JS turned off crap)
/snip
In my case they dont get past page one without js, so there is nowhere to go
back to... :-)
-Original Message
Anyone have any ideas or best practises on how to handle the use (mis-use)
of the browser back button on multi-page forms.
My forms work fine and validate Ok, but if the back button is used the forms
are not re-populated properly. In particular anything that was in the reset,
seems to be used
See the Action class' javadoc for the token methods and the struts-example
app for how to use them.
David
From: Ron Day [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: The Back button on on multi-page forms
Date
Use token for Back button and double-clicking.
-Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]
Sent: March 10, 2003 11:05 AM
To: Struts Users Mailing List
Subject: The Back button on on multi-page forms
Anyone have any ideas or best practises on how to handle the use
(mis-use
: Re: The Back button on on multi-page forms
See the Action class' javadoc for the token methods and the struts-example
app for how to use them.
David
From: Ron Day [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject
See the Action class' javadoc for details.
David
From: Ron Day [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms
Date: Mon, 10 Mar 2003 11:54:32 -0600
Thanks for the tip
I get the picturethanks anyway.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 12:04 PM
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms
See the Action class' javadoc for details.
David
From: Ron Day [EMAIL
button on on multi-page forms ??
Hello Ron,
We have an application that has the same problem. if you got the back
button issue resloved, could you please share the code sample ??
I checked the java doc, and it looks like isValidToken is in 1.1, and not
in 1.0.2.
Thanks!
Khalid
- Original
, March 10, 2003 12:25 PM
To: [EMAIL PROTECTED]
Subject: Re: The Back button on on multi-page forms ??
Hello Ron,
We have an application that has the same problem. if you got the back
button issue resloved, could you please share the code sample ??
I checked the java doc, and it looks like
, I reload page with error message blah blah.
6. If valid, I proceed and resetToken.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: March 10, 2003 1:48 PM
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms ??
You'll notice that I also
Maybe I'm dumb, but it is not apparent to me how the token is used to make
the back button post the correct form information.
R
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 12:48 PM
To: [EMAIL PROTECTED]
Subject: RE: The Back button
If token is invalid, nothing can be submitted.
-Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]
Sent: March 10, 2003 3:41 PM
To: Struts Users Mailing List
Subject: RE: The Back button on on multi-page forms ??
Maybe I'm dumb, but it is not apparent to me how the token
Pressing the back button does not contact the server and thus cannot post
any information. When the user submits the form again, their token will be
invalid and your action will prevent a duplicate post.
David
From: Ron Day [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL
I'm not sure I am explaining my problem correctly.
1) a Jsp page displays a form with text boxes, radio and checkboxes.
2) Form is filled out and submitted.
3) if validated, the next part of the form is dispayed with a second jsp
page.
4) But, User hits the browser back button
5) First form is re
So, how can they correct a user error (i.e wrong phone number) on the
previous page, and resubmit the form?
R
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:01 PM
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms
button to correct
data. Tokens prevent the user from submitting the same form twice.
David
From: Ron Day [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms ??
Date: Mon
On Mon, 2003-03-10 at 16:07, Ron Day wrote:
So, how can they correct a user error (i.e wrong phone number) on the
previous page, and resubmit the form?
Show 'em a is this info correct? page and take it from there. Relying
on the back button to do anything useful is a bad idea--how would you
will hit the back button.
That's where my problem starts..
ron
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:27 PM
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms ??
1. User submits form with invalid
I'm not relying on the back button. Believe me, I wish it wasn't there.
It is and the user will use it..
i'm trying to recover from it in a reasonable way.
R
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:34 PM
To: Struts Users
If this is a multi-page form, then don't use tokens and let them use the
back button to correct the data. If it's a single page form, use tokens and
provide an update form where they can correct any mistakes they made on the
add form. The difference is that the multi-page form
-
From: Ron Day [mailto:[EMAIL PROTECTED]
Sent: March 10, 2003 4:38 PM
To: Struts Users Mailing List
Subject: RE: The Back button on on multi-page forms ??
I'm not relying on the back button. Believe me, I wish it wasn't there.
It is and the user will use it..
i'm trying to recover
If this is a multi-page form, save token in the first load action, check
token on every page and reset token after final submission.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: March 10, 2003 4:49 PM
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi
sorry, I think we are going in circles.
This is a multipage form (3 to be exact but with only one actionform), BUT
my whole original issue was:
When they hit the back button the original form content IS either absent or
different to their last entries (I do a reset in the actionform0.
Am I
Then that is a browser specific issue. When I hit the back button in Opera,
all of the form fields are just how I entered them. Remember that the back
button does not contact the server so Struts has nothing to do with this.
David
From: Ron Day [EMAIL PROTECTED]
Reply-To: Struts Users
snip
Remember that the back button does not contact the server
/snip
Some do sometimes - but Im not sure under what cicumstances - probably
depends on what sort of caching setting you have set up in your browser -
and what browser it is - and the alignment of neptune and saturn etc.. (ie:
nothing
Yeah, maybe if you have no-cache setup the browser will contact the server
again. That javascript trick is truly evil. I'm guessing you have some
pretty upset users. I really hate it when sites break my back button and/or
remove my navigation buttons. That's one reason why I strictly use
very much more in the nature of a complex application with
bucket loads of state that happens to use a browser instead of a standalone
client and so theres a lot more 'funny stuff' going on behind the scenes
than your average struts app would have - none of which plays well with the
back button
I may be way off here, but how about coding defensively? This isn't some
special java-struts problem; it's the price of maintaining the illusion of a
session over HTTP.
Form tokens are a good idea but the user can and will click that pesky back
button to change what they inputted. One of two
On Tue, 11 Mar 2003, Andrew Hill wrote:
Date: Tue, 11 Mar 2003 11:06:01 +0800
From: Andrew Hill [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms ??
Hasnt got
about the back
button on the browser... What I'm finding is that pressing the back
button on the browser (Netscape) re-displays the correct page in
history, but it's not re-executing the action object to correctly
configure the action form, session object, etc. Is this just a
consequence
This is just how the back button on the browser functions with its caching policy. If
you turn caching off or set it to refresh pages always (dunno where this is in
Netscape exactly), then it will re-issue the previous request when you click the back
button and your action will be executed
. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 6:18 PM
To: Struts Users Mailing List
Subject: RE: proper use of back button -- design patterns
On Fri, 31 Jan 2003 [EMAIL PROTECTED] wrote:
Date: Fri, 31 Jan 2003 16:11:21 -0500
From: [EMAIL PROTECTED]
Reply-To: Struts
I notice that w/ the default configuration on most browsers is to ask
the user wheter form data should be resent.
I wonder if there are concise descriptions/tutorials on web
application design that deal with somewhat (I expect :) thorny
issue. Do people just set the pragmas for cache-control and
You can use tokens to prevent the user from resubmitting a form. See the
Action javadoc for token related methods.
David
From: Sundar Narasimhan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: proper use of back button -- design
to handle double submission in javascript so that you don't have to
deal with this issue, or am I missing something?
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 1:29 PM
To: [EMAIL PROTECTED]
Subject: Re: proper use of back button
1 - 100 of 178 matches
Mail list logo