It sounds like your submits are all getting appeneded to one another. Why this gives you an error I'm not exactly sure. If you are using a Get request some containers truncate the url to some value but I still don't believe this would give you an error.
A better approach would be to use JavaScript to disable the button after the first time it's been pressed. ~Matt Quoting Adrian Fortuzi <[EMAIL PROTECTED]>: > Hi > > When I do too many Submits an exception occures. > When I submit once or two, three, four times all is OK. > But when I try too many submits before a response is returned I have > an > java.lang.StringIndexOutOfBoundsException: String index out of range: > 413 > > We have Servlets 2.1. > This happens only with Tomcat 3.1 or 3.2.3. > > With Websphere I have an SocketException and all seems normal. > java.net.SocketException: socket closed (code=0) > java.lang.Throwable(java.lang.String) > java.lang.Exception(java.lang.String) > java.io.IOException(java.lang.String) > java.net.SocketException(java.lang.String) > int java.net.SocketInputStream.socketRead(byte [], int, int, > java.net.SocketImpl, java.io.FileDescriptor) > int java.net.SocketInputStream.read(byte [], int, int) > int java.net.SocketInputStream.read() > java.lang.String java.io.DataInputStream.readLine() > void > com.ibm.servlet.engine.http_transport.HttpTransportHandler.parseHeaders(java > .io.DataInputStream) > void > com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection( > java.net.Socket) > void > com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() > void java.lang.Thread.run() > > > Is this a Tomcat Bug or have we something wrong in our programms. > > Thanks > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: > http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
