Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 32854 invoked from network); 28 Dec 2008 12:06:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Dec 2008 12:06:02 -0000 Received: (qmail 58768 invoked by uid 500); 28 Dec 2008 12:05:53 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 58737 invoked by uid 500); 28 Dec 2008 12:05:52 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 58726 invoked by uid 99); 28 Dec 2008 12:05:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Dec 2008 04:05:52 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nilsga@gmail.com designates 209.85.218.10 as permitted sender) Received: from [209.85.218.10] (HELO mail-bw0-f10.google.com) (209.85.218.10) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Dec 2008 12:05:42 +0000 Received: by bwz3 with SMTP id 3so14031511bwz.11 for ; Sun, 28 Dec 2008 04:05:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=vl3s7bUfAHMtqw3CsJd+0HS6O/dkJ27DhFezjYHdPvI=; b=ewMq3WCUXWJOQKel6vEF7jVDHmYuH8vGNZi5NUGZn6NhM+cEBHWAeOzgJ3aDpNlo2C AkZQd1MfJfCzXDgycxibEh/SQPhUSauMVpoLDFUXaZ0ImfInSJfJE3D6gd6nHtrJOgHO O9ZP3KZj/SZZ65jbT9T8IfYkEQ2j2wxNNDGbI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jzzNt2ZA3L25Jw6wY1vCvZhUA+12//svz5ZyOs+D1HxjqxmbWJn0c/qG94aWVVrTAu Wz2LuDx7a6oKDCCD97RMS4nHvCHwxukOyKqIgazEKpDqQphYyiEnQr2+FOPa78mH9Ape SEEnUAN01VD9g25ptTDneweAC9WAiqFlcZwTc= Received: by 10.223.116.10 with SMTP id k10mr9226939faq.101.1230465920656; Sun, 28 Dec 2008 04:05:20 -0800 (PST) Received: by 10.223.105.20 with HTTP; Sun, 28 Dec 2008 04:05:20 -0800 (PST) Message-ID: <7270d7cd0812280405u2e3c4f4eia46e00942b0ba5a9@mail.gmail.com> Date: Sun, 28 Dec 2008 13:05:20 +0100 From: "Nils-Helge Garli Hegvik" To: "Struts Users Mailing List" Subject: Re: Preventing duplicate form submissions In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Take a look at the TokenInterceptor [1]. Nils-H [1] - http://struts.apache.org/2.0.14/docs/token-interceptor.html On Sun, Dec 28, 2008 at 10:41 AM, Andy wrote: > > Hi, > I am looking for some best-practice advice for avoiding duplicate form submissions in Struts2. I recently created a form that accepts user input, however after submitting the form the user may still refresh the page which resubmits the form. This wasn't handled so elegantly in Struts1 so I am hoping Struts2 might provide something better? > > Thanks! > _________________________________________________________________ > It's the same Hotmail(R). If by "same" you mean up to 70% faster. > http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org