The way I handle this is to use javascript to disable the submit button after
it has been clicked. This used in conjuction with the other suggestions should
cover all possibilities
-Original Message-
From: Elihu Smails [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 7:13 PM
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Elihu Smails wrote:
| Is there a way to prevent multiple form posts from the
| same page/user/session using only servlets? I have a
| page where users can upload files, but I do not want
| them to keep smashing the upload button if their files
| are
Yes there is.
But the problem is not really related to a servlet just to web architecture.
A strategy is to put an object token in the session when you show the
form and remove it when the user clicks upload.
You will then deny uploads if you don't have the token in the session .
Spring forms
Try this one:
http://java.sun.com/developer/EJTechTips/2003/tt0114.html
look on Preventing Repeated Operations
Mark.
--- Roberto Cosenza [EMAIL PROTECTED] wrote:
Yes there is.
But the problem is not really related to a servlet just to web
architecture.
A strategy is to put an object token
Use javascript to disable or remove the button.
[EMAIL PROTECTED] 12-09-2004 12:12
Is there a way to prevent multiple form posts from the
same page/user/session using only servlets? I have a
page where users can upload files, but I do not want
them to keep smashing the upload button if their