Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 68612 invoked from network); 12 Aug 2007 22:13:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Aug 2007 22:13:14 -0000 Received: (qmail 84550 invoked by uid 500); 12 Aug 2007 22:13:05 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 84035 invoked by uid 500); 12 Aug 2007 22:13:03 -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 84024 invoked by uid 99); 12 Aug 2007 22:13:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2007 15:13:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jak-struts-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2007 22:13:00 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IKLfi-00051d-KZ for user@struts.apache.org; Mon, 13 Aug 2007 00:12:30 +0200 Received: from cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com ([74.99.167.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Aug 2007 00:12:30 +0200 Received: from laurie by cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Aug 2007 00:12:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: user@struts.apache.org From: Laurie Harper Subject: Re: Localizing the list in a -tag? Date: Sun, 12 Aug 2007 18:12:25 -0400 Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) In-Reply-To: Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Toni Lyytik=E4inen wrote: > Hello, >=20 > Is it possible to localize the options in the list attribute of the > -tag? I've tried several approaches but none of them seem to = work. > What I'm aiming at is something like the following: >=20 > list=3D"#{ > '01' : 'this should be some localized text from a bundle', > '02' : 'this text should be localized too', > }" > value=3D"x" > /> >=20 > For some reason it seems to be impossible to use double quotes (") for = the > elements in the map, unless escaped, and the escaping means that the > expression inside won't be evaluated. >=20 Have you tried something like (untested): list=3D"#{'01': getText('message.key'), ... L. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org