Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 8765 invoked from network); 1 Dec 2003 16:43:58 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Dec 2003 16:43:58 -0000 Received: (qmail 86865 invoked by uid 500); 1 Dec 2003 16:43:35 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 86820 invoked by uid 500); 1 Dec 2003 16:43:34 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 86806 invoked from network); 1 Dec 2003 16:43:34 -0000 Received: from unknown (HELO cmailm5.svr.pol.co.uk) (195.92.193.21) by daedalus.apache.org with SMTP; 1 Dec 2003 16:43:34 -0000 Received: from modem-1962.cheetah.dialup.pol.co.uk ([217.134.103.170] helo=ksysworkstn01) by cmailm5.svr.pol.co.uk with smtp (Exim 4.14) id 1AQr95-0002YP-9g for struts-user@jakarta.apache.org; Mon, 01 Dec 2003 16:43:36 +0000 Message-ID: <014901c3b82a$5a11f790$65fea8c0@kurtosys> From: "Claire Wall" To: "Struts Users Mailing List" References: <00b201c3b813$543a6b70$65fea8c0@kurtosys> <059b01c3b824$d9f2fe60$8fbf430a@tmn.capgemini.fr> Subject: Re: forward vs redirect ? Date: Mon, 1 Dec 2003 16:44:12 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N caroline, when the user gets to page2, what is the url displayed in the address box? is it the action or the jsp page? claire ----- Original Message ----- From: "Caroline Lauferon" To: "Struts Users Mailing List" Sent: Monday, December 01, 2003 4:04 PM Subject: Re: forward vs redirect ? > > For example, say i had an action which saved some details from a form to a > > database. if the page is not redirected then if the user were to refresh > the > > page, the action would be called again and the data saved again. This > > obviously i would not want the user to do so in this case i redirect the > > page, so that if the user were to refresh the page, the save action would > > not be called again. > > I'm not sure I understand what you mean. The case you describe is very close > to mine, and so I would like to prevent the user from making twice the > addition on refresh: > I've got one first form, Form1, which calls Action1: > input="/form1.jsp"> > > > > but once the user is on page2, if he makes a refresh, action1 is called > again.... and the data added by action1 is added once more.... > > What didn't I understand? > Thanks > Caroline > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org