RE: prevent multiple form posts using only servlets

2004-12-12 Thread Dale, Matt
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

[OT] Re: prevent multiple form posts using only servlets

2004-12-09 Thread Dennis Payne
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 th

Re: prevent multiple form posts using only servlets

2004-12-09 Thread Mark
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

Re: prevent multiple form posts using only servlets

2004-12-09 Thread Roberto Cosenza
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 form

Re: prevent multiple form posts using only servlets

2004-12-09 Thread James Black
-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 la