Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 56494 invoked from network); 31 Jul 2003 04:42:43 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 31 Jul 2003 04:42:43 -0000 Received: (qmail 17099 invoked by uid 97); 31 Jul 2003 04:45:28 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 17092 invoked from network); 31 Jul 2003 04:45:28 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 31 Jul 2003 04:45:28 -0000 Received: (qmail 54029 invoked by uid 500); 31 Jul 2003 04:42:16 -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 54017 invoked from network); 31 Jul 2003 04:42:15 -0000 Received: from moutng.kundenserver.de (212.227.126.177) by daedalus.apache.org with SMTP; 31 Jul 2003 04:42:15 -0000 Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19i5Gj-0005vt-00 for struts-user@jakarta.apache.org; Thu, 31 Jul 2003 06:42:25 +0200 Received: from [62.225.130.162] (helo=stephan-wiesner.de) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 19i5Gj-00046X-00 for struts-user@jakarta.apache.org; Thu, 31 Jul 2003 06:42:25 +0200 Message-ID: <3F289E35.2050001@stephan-wiesner.de> Date: Thu, 31 Jul 2003 06:42:29 +0200 From: Stephan Wiesner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: How to add action errors from action class's execute method References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Anurag, your proposal works for me, but how can I recall the value? I can get at it with but I want to display it by key, not all stored values? Stephan Anurag Garg wrote: >Hi, > > U can create the ActionError object and add them in the ActionErrors class >in the action class. > Now to forward the request to some resource add the actionerrors object >method in the sendError(). > > Use saveErrors(request,errors) in the action class. > > where errors is an object of type ActionClass. > >Anurag Garg. > > >-----Original Message----- >From: White, Joshua A (HTSC, CASD) [mailto:Joshua.White@thehartford.com] >Sent: Thursday, July 24, 2003 11:36 PM >To: struts-user@jakarta.apache.org >Subject: How to add action errors from action class's execute method > > >Hello all, > >How would you add action errors from an action class's execute method? > >I would like to be able to add errors and forward to another resource >without the need to do it in the validate method of the form bean. > >Thanks, > >Joshua > > > >This communication, including attachments, is for the exclusive use of >addressee and may contain proprietary, confidential or privileged >information. If you are not the intended recipient, any use, copying, >disclosure, dissemination or distribution is strictly prohibited. If >you are not the intended recipient, please notify the sender >immediately by return email and delete this communication and destroy all >copies. > > >--------------------------------------------------------------------- >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 > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org