Thanks I'll give it a go !

Richard

> -----Original Message-----
> From: Yogeeta_Raghunathan [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, December 03, 2000 9:34 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: IllegalStateException
>
> You could prevent the user from clicking the link many times thru
> javascript.
>
> The following code is to prevent submitting the form many times. U could
> modify it for the menu option.
> I got it from javascript.internet.com.
>
> <SCRIPT LANGUAGE="JavaScript">
>
> <!-- This script and many more are available free online at -->
> <!-- The JavaScript Source!! http://javascript.internet.com -->
>
> <!-- Begin
> var submitcount=0;
>
> function reset() {
> document.emailform.name.value="";
> document.emailform.email.value="";
> document.emailform.comments.value="";
> }
>
> function checkFields() {                       // field validation -
> if ( (document.emailform.name.value=="")  ||   // checks if fields are
> blank.
>      (document.emailform.email.value=="") ||   // More validation scripts
> at
>      (document.emailform.comments.value=="") ) //
> forms.javascriptsource.com
>    {
>    alert("Please enter your name, email, and comments then re-submit this
> form.");
>    return false;
>    }
>
> else
>    {
>    if (submitcount == 0)
>       {
>       submitcount++;
>       return true;
>       }
>    else
>       {
>       alert("This form has already been submitted.  Thanks!");
>       return false;
>       }
>    }
> }
> //  End -->
> </script>
>
> Hope this helped
> T R Yogeeta
>
> > ----------
> > From:         Berger, Richard[SMTP:[EMAIL PROTECTED]]
> > Reply To:     A mailing list about Java Server Pages specification and
> > reference
> > Sent:         Thursday, November 30, 2000 6:16 PM
> > To:   [EMAIL PROTECTED]
> > Subject:      IllegalStateException
> >
> > Hi,
> > I am getting an 'IllegalStateException : reset() failed - data has
> already
> > been sent to client' from my servlet. It is caused generally when a user
> > hits a menu option multiple times without waiting for any response. Is
> > there
> > any way avoiding this occurring or stopping multiple identical requests
> > from
> > being processed ?
> >
> > Any help would be appreciated.
> >
> > Thanks
> >
> > Richard
> >
> >
> ==========================================================================
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to