Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 27522 invoked from network); 4 Jan 2005 17:18:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Jan 2005 17:18:48 -0000 Received: (qmail 97957 invoked by uid 500); 4 Jan 2005 17:15:36 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 97635 invoked by uid 500); 4 Jan 2005 17:15:30 -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 97229 invoked by uid 99); 4 Jan 2005 17:15:23 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from workstation5.qas.com (HELO mail3.qas.com) (195.172.82.5) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 04 Jan 2005 09:15:18 -0800 Received: from orion.qas.com (orion.qas.com [150.150.100.34]) by mail3.qas.com (Content Technologies SMTPRS 4.3.17) with ESMTP id ; Tue, 4 Jan 2005 16:59:50 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: [OT] RE: After clicking Refresh re-entry of data Date: Tue, 4 Jan 2005 16:59:50 -0000 Message-ID: <5684A7E6FB10504393A2806C1F4C021005AF8145@orion.qas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: After clicking Refresh re-entry of data Thread-Index: AcTyflAUi0DeUuYESyS/Jb2IOk6XxgAAD4xg From: "Allistair Crossley" To: "Tomcat Users List" , , X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Please do not use Tomcat User list for these types of posts. Because the request post form data is cached by the web browser. You need t= o send a redirect to the browser via request.sendRedirect instead of a mapp= ing.findForward in this case. Allistair. > -----Original Message----- > From: Passsionate [mailto:mohit4java@yahoo.co.in] > Sent: 04 January 2005 16:50 > To: java-forum@yahoogroups.com; java@jug-delhi.org; > tomcat-user@jakarta.apache.org > Subject: After clicking Refresh re-entry of data >=20 >=20 > Hi, > =20 > I am using Tomcat -5.0.25 and Struts 1.1 for my appl. > The problem which i m encountering is that from=20 > ControlAction.do (class overridding execute()), a JSP is=20 > displayed. The displayed item say is of a table with attribs=20 > Name, Age. The JSP page contains a ADD button . On clicking =20 > this dynamically the text boxes appear and the user can enter=20 > the values. On clicking Save , the values are being saved in=20 > the database. > Now comes the problem as i refresh the page the values gets=20 > reentered and it happens for each refresh act.As the primary=20 > key is generated dynamically so a check for that can't be applied. > I had tried hard to solve it, but couldn't. > Plz. help me. > Thanks in advance, > Mohit Agarwal. >=20 >=20 > Yahoo! India Matrimony: Find your life partneronline. >=20 =20 ------------------------------------------------------- QAS Ltd. Developers of QuickAddress Software www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org