Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 45460 invoked from network); 14 Mar 2007 13:45:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 13:45:04 -0000 Received: (qmail 37535 invoked by uid 500); 14 Mar 2007 13:45:00 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 37511 invoked by uid 500); 14 Mar 2007 13:45:00 -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 37500 invoked by uid 99); 14 Mar 2007 13:45:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 06:45:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [216.148.227.151] (HELO rwcrmhc11.comcast.net) (216.148.227.151) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 06:44:47 -0700 Received: from [192.168.1.47] (c-69-143-26-154.hsd1.va.comcast.net[69.143.26.154]) by comcast.net (rwcrmhc11) with ESMTP id <20070314134426m11009lcq7e>; Wed, 14 Mar 2007 13:44:26 +0000 Message-ID: <45F7FCAB.9030301@christopherschultz.net> Date: Wed, 14 Mar 2007 09:46:19 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: ResourceBundle in Javascript? References: <408651.68824.qm@web56701.mail.re3.yahoo.com> In-Reply-To: <408651.68824.qm@web56701.mail.re3.yahoo.com> X-Enigmail-Version: 0.94.1.2.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nitin, Dave Newton wrote: > Message bundles are server-side. You want to access it on the client. [snip] > If you just need to access a single message out of a bundle, maybe > this is okay, although I'd probably just put the message into scope > via an Action then build your JavaScript using JSTL, which might be > enough for whatever it is you're trying to do. This is what I do (albeit without JSTL) when I need to use a localized string in javascript. It's also what velocity-tools does in order to render client-side validation error messages. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF9/yr9CaO5/Lv0PARAo43AKCSt6AGuumgaFCqdGeNtkaN0KsYZACfR3yA XeNvNT3i3MPasVFgbqLwuaI= =rWgL -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org