Return-Path: Delivered-To: apmail-beehive-user-archive@www.apache.org Received: (qmail 1440 invoked from network); 9 Nov 2005 17:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Nov 2005 17:46:24 -0000 Received: (qmail 58737 invoked by uid 500); 9 Nov 2005 17:46:23 -0000 Delivered-To: apmail-beehive-user-archive@beehive.apache.org Received: (qmail 58685 invoked by uid 500); 9 Nov 2005 17:46:21 -0000 Mailing-List: contact user-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list user@beehive.apache.org Received: (qmail 58673 invoked by uid 99); 9 Nov 2005 17:46:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2005 09:46:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of thoefner@bea.com designates 63.96.162.5 as permitted sender) Received: from [63.96.162.5] (HELO ussjmh01.bea.com) (63.96.162.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2005 09:46:14 -0800 Received: from ussjfe02.amer.bea.com (ussjfe02.bea.com [172.16.120.52]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id jA9Hjxtj006050 for ; Wed, 9 Nov 2005 09:45:59 -0800 Received: from USBOEX01.amer.bea.com ([10.36.32.15]) by ussjfe02.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 9 Nov 2005 09:45:59 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: PageflowUtils.addActionError() and non-default message bundle Date: Wed, 9 Nov 2005 10:45:58 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PageflowUtils.addActionError() and non-default message bundle Thread-Index: AcXk5t6LpUOJrLuGToWP5+FqaD4QswAa3JoA From: "Ture Hoefner" To: "Beehive Users" X-OriginalArrivalTime: 09 Nov 2005 17:45:59.0189 (UTC) FILETIME=[71AA3C50:01C5E555] X-PMX-Version: 4.7.0.111621, Antispam-Engine: 2.0.2.0, Antispam-Data: 2005.11.9.17 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks Rich. I went with PageFlowUtils.addActionErrorExpression(). I also used the tip that Eddie gave in another thread for building a JSP 2.0 EL expression for a message key that uses dot notation in the key like this: "${bundle.myBundleName['my.msg.key']}" By the way, I had seen the PageFlowUtils.addActionErrorExpression() method in the javadoc before but did not try it because I didn't understand that the String expression arg was used as the JSP 2.0 EL expression for the bundleName in the tag that is displaying the error message from this method call. Maybe a link to the javadoc for the bundleName element of the Jpf.MessageBundle annotation would help? And maybe some extra text to explain that the "expression is used as an EL expression to databind a named message bundle in JSPs that display the action error"... or something like that? Thanks for the help....it would have taken me forever to figure it out on my own. Ture -----Original Message----- From: Rich Feit [mailto:richfeit@gmail.com]=20 Sent: Tuesday, November 08, 2005 9:34 PM To: Beehive Users Subject: Re: PageflowUtils.addActionError() and non-default message bundle Hi Ture, I think you have two options currently: - PageFlowUtils.addActionErrorExpression(request, "someProperty", "${bundle.someOtherBundle.myMessage}", ) - use the 'bundleName' attribute on Would either of these work for you? Rich p.s. var-args would be nice, huh? Currently, the NetUI code doesn't use Java 5 features internally, because there's a layer that lets it run under 1.4 (with XDoclet-style annotations). This never really became a supported feature, and the no-Java5 restriction will end at some point.