Have a session bean that handles the checkout. If you synchronize the method the user called, only the first call will go through while the others wait. When the method is called by second one you can check to see if they've already checked out.
You have to make sure to get synchronization on the client base, not application or request. ----- Original Message ----- From: "priscilla augustin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 2:29 PM 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