Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 81337 invoked from network); 4 May 2006 13:21:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 13:21:46 -0000 Received: (qmail 26047 invoked by uid 500); 4 May 2006 13:21:30 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 26021 invoked by uid 500); 4 May 2006 13:21:30 -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 26009 invoked by uid 99); 4 May 2006 13:21:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 06:21:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.192.67.250] (HELO alpha.eurodyn.com) (62.192.67.250) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 06:21:29 -0700 Received: from parnitha.eurodyn.com (parnitha.eurodyn.com [10.251.0.3]) by alpha.eurodyn.com (8.12.9/8.12.9) with ESMTP id k44DL59r028321 for ; Thu, 4 May 2006 16:21:05 +0300 (EET DST) Received: by parnitha.eurodyn.com with ESMTP id QAA17208; Thu, 4 May 2006 16:21:05 +0300 (EET DST) Received: from [10.254.255.58] (account emmanouil.batsis [10.254.255.58] verified) by eurodyn.com (CommuniGate Pro SMTP 4.0.5) with ESMTP id 4324127 for user@struts.apache.org; Thu, 04 May 2006 16:21:05 +0300 Message-ID: <445A018B.4030601@eurodyn.com> Date: Thu, 04 May 2006 16:28:43 +0300 From: Emmanouil Batsis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: ???en_GB. in errors References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Shoukat, Faisal wrote: >Hi, > >I throw a application exception back to the web layer and catch it in my >action class. I then create a errors object with the exception as follows: > >errors.add("errors", new ActionMessage(e.getCause().getMessage())); > > You need to add false as a second param to the ActionMessage constructor; it will tell it to use the value as is instead of trying to match it as a key in the application messages bundle. Check out the API! hth, Manos > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org