Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 85064 invoked from network); 7 Feb 2002 08:59:20 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Feb 2002 08:59:20 -0000 Received: (qmail 28537 invoked by uid 97); 7 Feb 2002 08:59:06 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 28520 invoked by uid 97); 7 Feb 2002 08:59:05 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 28497 invoked from network); 7 Feb 2002 08:59:05 -0000 From: "C Cayetano" To: "Tomcat Users List" Subject: how to prevent hitting back button and re-executing code? Date: Thu, 7 Feb 2002 00:58:24 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 In-Reply-To: <3C621197.8050407@heaven.club.ne.jp> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N All, Problem: I've got a name.jsp page which has a form to get lastname, firstname, address, etc. On submit the form is sent to a servlet for adding into the database (primary key field is an incremental record ID) Once processed the servlet redirects to a confirmation.jsp page Now if the the user hits the back button, which pops a 'retry' dialog box, and the user hits retry button, the whole add process is executed again and the same lastname, firstname, address, etc. is entered into the database, basically creating duplicate records. Is there a way to prevent this? Thanks -- To unsubscribe: For additional commands: Troubles with the list: