Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 19398 invoked from network); 14 Apr 2011 18:43:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2011 18:43:58 -0000 Received: (qmail 92636 invoked by uid 500); 14 Apr 2011 18:43:56 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 92604 invoked by uid 500); 14 Apr 2011 18:43:56 -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 92596 invoked by uid 99); 14 Apr 2011 18:43:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 18:43:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [132.205.96.94] (HELO oldperseverance.encs.concordia.ca) (132.205.96.94) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 18:43:49 +0000 Received: from cacao.encs.concordia.ca (emilu@cacao.encs.concordia.ca [132.205.47.225]) by oldperseverance.encs.concordia.ca (envelope-from emilu@encs.concordia.ca) (8.13.7/8.13.7) with ESMTP id p3EIhSh1027563 for ; Thu, 14 Apr 2011 14:43:28 -0400 Message-ID: <4DA74050.60201@encs.concordia.ca> Date: Thu, 14 Apr 2011 14:43:28 -0400 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101125 Lightning/1.0b1 Thunderbird/3.0.11 MIME-Version: 1.0 To: user@struts.apache.org Subject: Re: addActionError() caused "Page not found (404)". References: <4DA5F75B.2030905@encs.concordia.ca> <4DA60AFB.9070802@encs.concordia.ca> <4DA700E5.4010400@encs.concordia.ca> <4DA71898.7010900@ncstech.com> <4DA71E72.7030708@ncstech.com> In-Reply-To: <4DA71E72.7030708@ncstech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on oldperseverance.encs.concordia.ca at 2011/04/14 14:43:29 EDT X-Virus-Checked: Checked by ClamAV on apache.org > Especially if there were no validation errors, > only error messages added by the application code. By the way, I agree with this very much! Emi > > - Aner > > On 04/14/2011 12:00 PM, Dave Newton wrote: >> On Thu, Apr 14, 2011 at 11:54 AM, Aner Perez wrote: >>> This is an annoying "feature" of the Workflow interceptor. If >>> ValidationAware.hasErrors() returns >>> true, the interceptor chain is stopped and Action.INPUT is returned. >>> If you put error messages >>> on your action, it will make hasErrors return true which will force >>> the "input" result to be returned. >> >> How is it annoying? That's the interceptor's purpose in life, to >> handle workflow. Errors usually change flow. "Mucking" with the >> interceptor is as simple as changing the inputResultName property for >> the specific action, although in this case I don't really see why it'd >> be worth it. >> >> Dave > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 emilu@encs.concordia.ca +1 514 848-2424 x5884 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org