Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 14255 invoked from network); 29 Oct 2009 15:31:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Oct 2009 15:31:41 -0000 Received: (qmail 43017 invoked by uid 500); 29 Oct 2009 15:31:38 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 42949 invoked by uid 500); 29 Oct 2009 15:31:38 -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 42935 invoked by uid 99); 29 Oct 2009 15:31:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 15:31:38 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of greg.lindholm@gmail.com designates 216.239.58.186 as permitted sender) Received: from [216.239.58.186] (HELO gv-out-0910.google.com) (216.239.58.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 15:31:33 +0000 Received: by gv-out-0910.google.com with SMTP id s4so318816gve.25 for ; Thu, 29 Oct 2009 08:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=o55dFerzFajvGJWJq42r1OdAF3Bk5ndgV2DjZPzCl2g=; b=JRwKCk4Gxs/IwTN6mJn2bA2Qsf/rZkQEcvN6NKyXJLOgHjIHVVuzVRwNc6Y4pomPYr g+zZOST+DoTKTI8MAa26NyyldcBzrZU/N7v7ynNEawcYg/Psjflr7E2GSrpZ4Wadpgik yuqKGSK2pemTZWRuYbJEG33XkyAnDSoViB828= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=b4YIH0Oods6S2+GVx4Cp5Bq5ONbx0rSX1TC2QfwaWCOdegPNKJCCrCe1w4v5rI0mWE IUhyE02ik/expY47c/fL4L7T4cY8hsbtF+hvdGHcHukbEVEz9F6A29rf3615VxHJTh0U c7ymUMbpPwP0cn3yWGddxNbLEJjuX8mIKiir4= MIME-Version: 1.0 Received: by 10.216.86.14 with SMTP id v14mr62093wee.183.1256830271090; Thu, 29 Oct 2009 08:31:11 -0700 (PDT) In-Reply-To: <26114968.post@talk.nabble.com> References: <26114968.post@talk.nabble.com> Date: Thu, 29 Oct 2009 11:31:11 -0400 Message-ID: <74a2042d0910290831w119db28bne8805f7cdb0f00a5@mail.gmail.com> Subject: Re: Preserving Messages and Garbage values Across a Redirect in Struts 2 From: Greg Lindholm To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=0016e6d7eb68d9f228047714997c --0016e6d7eb68d9f228047714997c Content-Type: text/plain; charset=ISO-8859-1 The short answer is don't redirect when validation fails. For results of "input" you should not be doing a redirect or you get the problem you described. On Thu, Oct 29, 2009 at 11:13 AM, Siddiq Syed wrote: > > Hi all, > > I have been using Glindholm's RedirectMessageInterceptor to perserve the > validations/error messages and is working absoulty fine. > > But the problem is the values in the fields are not stored. > > If a form has 10 fields of which 2 fields are not valid(It does not pass > validation), Intercerptor displays the error message but doesnot shows the > values in the fields of the form. > > I hope you guys got the problem. I don't want the user to enter all the > values every time even if the validation fails for 1 or 2 field. > > Please let me know if you have occured this problem and have the solution > for the same. > > Thanks in advance. > > http://glindholm.wordpress.com/ > > > Thanks > Siddiq. > -- > View this message in context: > http://www.nabble.com/Preserving-Messages-and-Garbage-values-Across-a-Redirect-in-Struts-2-tp26114968p26114968.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --0016e6d7eb68d9f228047714997c--