When you check  that they've already checked out, just send them to the
thank-you page.

----- Original Message -----
From: "Augustin, Priscilla" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 3:11 PM
Subject: Re: Handling multiple form submits


> Ok, having a flag set in the session and checking it before a checkout
will
> get me out
> of doing the checkout more than once. But the problem I face here is, when
> the browser
> sends multiple requests, it always waits for the response from the last
> request. But in my
> case, the first request will do the checkout. Do I have to keep track of
all
> the threads associated
> with the requests, and once the flag is reset by the first request, get
the
> thread associated with the last
> request and redirect to the thankyou page?
>
>
> Thanks
> Priscilla
>
> -----Original Message-----
> From: Borislav Iordanov [mailto:borislav@;KOBRIX.COM]
> Sent: Friday, November 01, 2002 11:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Handling multiple form submits
>
>
> hi,
>
> If you don't want the request submitted a second time at all, you will
> have to use javascript. Otherwise, there is something called "sensitive
> form resubmits" and a relatively standard way of handling the situation.
> You can find some info about it here:
>
> http://www.kobrix.com/view_contribution.jsp?cid=7
>
> This is in the context of our own product, but the general solution is
> described as well.
>
> Best,
> Boris
>
> ____________________________________________
> Borislav Iordanov
> Chief Architect
> TICL - a RAD toolkit for server-side Java
> http://www.kobrix.com
>
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification
> > and reference [mailto:JSP-INTEREST@;JAVA.SUN.COM] On Behalf Of
> > priscilla augustin
> > Sent: Friday, November 01, 2002 2:29 PM
> > To: [EMAIL PROTECTED]
> > Subject: Handling multiple form submits
> >
> >
> > Hi,
> >  I'm working on an ecommerce application based on JSP/EJB.
> > The problem that I have is when the user clicks the checkout
> > button multiple times, multiple requests are sent to the jsp.
> > I'm looking for a solution that is not based on javascript
> > (basically at the client side). Wondering if anyone has any
> > thoughts on this.
> >
> > Thanks
> > Priscilla
> >
> > ==============================================================
> > =============
> > 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>
===========================================================================
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>
===========================================================================
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to