Thank you everybody for the timely information.
Amar..
-Original Message-
From: Rob Leland [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 6:25 PM
To: [EMAIL PROTECTED]
Subject: Re: double submission of forms
Search the www.mail-archives.com for the phrase 'token
Hi all,
Will struts be able to handle the double posting of forms ?
For example if a user submits a form, and when the processing is taking
place on the server, he submits information again (or uses the back button
of browser to submit information). Will struts be able to ignore the
CTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 02, 2001 1:35 PM
Subject: double submission of forms
Hi all,
Will struts be able to handle the double posting of forms ?
For example if a user submits a form, and when the processing is taking
place on the server, he submits information again
Struts will not do anything special in this case (that I know of...)
To guard against multiple submission you can put a unique id in a hidden
field. If you've already processed the request with that id, you ignore it.
(For example, if you're an ecommerce site, your database would store the id
Search the www.mail-archives.com for the phrase 'token'
The Action.saveToken methods and Action.resetToken
methods will do what you want on the server side.
-Rob
"Nanduri, Amarnath" wrote:
Hi all,
Will struts be able to handle the double posting of forms ?
For example if a user
5 matches
Mail list logo