Re: multiple form submits

2010-05-20 Thread André Warnier
Just some comments.. How about the following? When the form is submitted, display a page without a submit button that 1) indicates the form is being processed and 2) submits the form data for actual processing. And in the meantime, where is the page with the form with the data that has to

Re: Re: multiple form submits

2010-05-20 Thread Terence M. Bandoian
How about the following? When the form is submitted, display a page without a submit button that 1) indicates the form is being processed and 2) submits the form data for actual processing. -Terence Bandoian Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On

Re: multiple form submits

2010-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 5/20/2010 11:51 AM, Pid wrote: > On 20/05/2010 15:01, Christopher Schultz wrote: >> That's fine, but the onclick handler doesn't do anything but disable >> itself upon the first click. > > It doesn't need to; after the scriptlet completes it

Re: multiple form submits

2010-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hassan, On 5/20/2010 10:31 AM, Hassan Schroeder wrote: > On Thu, May 20, 2010 at 7:01 AM, Christopher Schultz > wrote: > > UserVisitor is clicking the image based href MULTIPLE TIMES > >> I'd love to hear some clever solutions to this problem

Re: multiple form submits

2010-05-20 Thread Pid
On 20/05/2010 15:01, Christopher Schultz wrote: > Pid, > > On 5/17/2010 4:43 PM, Pid wrote: >> On 17/05/2010 21:07, Christopher Schultz wrote: >>> Karthik, >>> >>> On 5/13/2010 3:45 AM, Karthik Nanjangude wrote: Question : My web application uses "href" & "css based image's" for tr

Re: multiple form submits

2010-05-20 Thread Hassan Schroeder
On Thu, May 20, 2010 at 7:01 AM, Christopher Schultz wrote: UserVisitor is  clicking the image based href  MULTIPLE TIMES > I'd love to hear some clever solutions to this problem. Create a unique value in a hidden field in each displayed form. Have a servlet filter save the value of that

Re: multiple form submits

2010-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 5/17/2010 4:43 PM, Pid wrote: > On 17/05/2010 21:07, Christopher Schultz wrote: >> Karthik, >> >> On 5/13/2010 3:45 AM, Karthik Nanjangude wrote: >>> Question : My web application uses "href" & "css based image's" >>> for transferring th

Re: multiple form submits

2010-05-17 Thread Pid
the *second* click, the handler returns false and so stops the action, theoretically preventing the multiple click stream problem. p > BTW, the default target is "_self", so there's no need to specify that. > > Unless there is more Javascript that you haven't posted, th

Re: multiple form submits

2010-05-17 Thread Christopher Schultz
change the onClick handler? How about this: Submit Form BTW, the default target is "_self", so there's no need to specify that. Unless there is more Javascript that you haven't posted, the above does not submit a form. > And causes the multiple form submits. How to prevent th

Re: multiple form submits

2010-05-13 Thread Steve Yates
e, or set it to '#image.jsp?mult=1". You can > always set a timer, to remove the '#' after a couple of seconds, if the > page hasn't changed. > > 2. Use a instead and disable it during the first mouse > down. > > >> And causes the multiple form

Re: multiple form submits

2010-05-13 Thread Steve Yates
he problem is UserVisitor is clicking the image based > href MULTIPLE TIMES ( multiple clicks ) > > onClick="this.onclick=function(){return false}" target="_self" >class="buttonRedSmall">Submit Form > > And causes the multip

Re: multiple form submits

2010-05-13 Thread Pid
l">Submit Form 1. Unset the href value, or set it to '#image.jsp?mult=1". You can always set a timer, to remove the '#' after a couple of seconds, if the page hasn't changed. 2. Use a instead and disable it during the first mouse down. > And causes the multiple

multiple form submits

2010-05-13 Thread Karthik Nanjangude
TIPLE TIMES ( multiple clicks ) Submit Form And causes the multiple form submits. How to prevent the same ? I googled / yahooed for Cross browser based tricks to disable the multiple request...Not luck so far ... Can some body help me if Tomcat has any special features to prevent this attack

Re: TC 5.5.15 - Internet Explorer firing multiple form submits? - Solution - thanks

2006-12-15 Thread Frank McLean
Thanks Chris, that works. I think this used to be a simple button, rather than a submit. Sincerely, Frank McLean Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, Frank McLean wrote: I have a couple of submit buttons similar to the following: You

Re: TC 5.5.15 - Internet Explorer firing multiple form submits?

2006-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, Frank McLean wrote: > I have a couple of submit buttons similar to the following: > > onclick='mode.value=2;document.forms[0].submit()'/> Your javascript is causing the "multiple submit" behavior. You need to change your onclick handler to t

TC 5.5.15 - Internet Explorer firing multiple form submits?

2006-12-14 Thread Frank McLean
Hi, We use TC 5.5.15 behind an Apache2 front end and the AJP connecter. I have a form, using the SSLEXT tag library- - which posts to Struts and thence to my app. I have a couple of submit buttons similar to the following: onclick='mode.value=2;document.forms[0].submit()'/> Everything is