On 13/05/2010 08:45, Karthik Nanjangude wrote: > Hi > > Spec : > JDK1.5 > TOMCAT 6.0.20 > O/s windows /Linux > > > Question : My web application uses "href" & "css based image's" for > transferring the request from 1 page to another > The problem is UserVisitor is clicking the image based > href MULTIPLE TIMES ( multiple clicks )
Why is this a problem?
> <a href="image.jsp?mult=1" id='submitButton1'
> onClick="this.onclick=function(){return false}" target="_self"
> class="buttonRedSmall"><span>Submit Form</span></a></td>
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 <button></button> instead and disable it during the first mouse
down.
> 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 ....... :(
It doesn't.
p
signature.asc
Description: OpenPGP digital signature
