tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: fmt:bundle
Date Wed, 23 Nov 2005 01:10:36 GMT
On 11/22/05, Ray Madigan <ray@madigans.org> wrote:
<snip>
>
> Displays
>
> FOO???Bar???
>
> The first bundle is set but the second one doesn't
>
<snap/>

I was intrigued and I had to try this. Works correctly for me, I get:
FOO BAR

Tried on JSTL 1.1, Tomcat 5.0.28.

So it turns out we *still* don't have enough information, we're
missing something.

-Rahul


> -----Original Message-----
> From: Rahul Akolkar [mailto:rahul.akolkar@gmail.com]
> Sent: Sunday, November 20, 2005 8:54 PM
> To: Tag Libraries Users List
> Subject: Re: fmt:bundle
>
>
> On 11/16/05, Ray Madigan <ray@madigans.org> wrote:
> > I was wondering if anyone could shed some light on a problem I am having!
> >
> > I have a page that needs to get a resource bundle based on a string passed
> > into the page.  It is kinda like this:
> <snip/>
>
> Ray -
>
> Sorry, I'm not sure based on the information in this email.
>
> But, I'm quite positive this is not a JSTL issue. If you think it is,
> please post the smallest reproducible test case.
>
> -Rahul
>
>
> >
> > <!-- array holds the list of the reference names for the resource
> bundle -->
> > <c:forEach var='foo' items='${array}'>
> >
> >   <fmt:bundle basename='common'>
> >   <!-- find resource name and store it in attribute bar -->
> >   <fmt:message key='${foo}' var='bar'/>
> >   </fmt:bundle>
> >
> >   <!-- iterate through the list of elements -->
> >   <c:forEach var='map' items='${elements}'>
> >
> >      <fmt:bundle basename='${bar}'>
> >      <!-- find the property in the bar reference resource -->
> >      <fmt:message key='${map}'/>
> >      </fmt:bundle>
> >
> >   </forEach>
> > </forEach>
> >
> > -----Original Message-----
> > From: Ray Madigan [mailto:ray@madigans.org]
> > Sent: Wednesday, November 16, 2005 12:37 AM
> > To: Taglibs-User
> > Subject: fmt:bundle
> >
> >
> > I was wondering if anyone could shed some light on a problem I am having!
> >
> > I have a pafe that needs to get a resource bundle based on a string passed
> > into the page.  It is kinda like this:
> >
> > <fmt:bundle basename='common'/>
> > <fmt:message key='${foo}' var='bar'/>
> > </fmt:bundle>
> >
> > <c:forEach var='bar' items='barMap'>
> >
> >    <fmt:bundle basename='bar.key'>
> >    <fmt:message key='${bar.value}'/>
> >    </fmt:bundle>
> >
> > </forEach>
> >
> > Things work well for the first <fmt:bundle ant the first <fmt:bundle in
> the
> > <c:forEach.  The second <fmt:message acts like it con't find the resource
> in
> > the bundle.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message