Thanks Giovanni, I will try it out. I wasn't sure if the EL would
resolve the variable if it was in the [].

Dan

-----Original Message-----
From: Giovanni Motta [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 29, 2007 1:19 AM
To: Beehive Users
Subject: Re: netui:declareBundle and i18n

Hi Dan,

${bundle.messages[pageInput.helloWorld]}

should work perfectly, we use this syntax in a similar context.

Giovanni.


2007/3/28, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Grabbing internationalized values for static strings is straight
forward
> from a resource bundle. How do I grab an i18n string for a token that
> would be returned from an object?
>
>
>
> For instance,
>
> ${bundle.messages.helloWorld} for static hello String.
>
>
>
> But let's say the value comes from pageInput:
>
> ${bundle.messages[${pageInput.helloWorld}]} and helloWorld can return
> any number of tokens that are retrieved from the bundle.
>
>
>
> I do not think scriplets play well either with this:
>
> ${bundle.messages[<%= helloWorld %>]}. Which processes first - the
> scriplet of the ${}?
>
>
>
> Any help would be gratefully appreciated.
>
>
>
> Dan
>
>

Reply via email to