--- Kris Schneider <[EMAIL PROTECTED]> wrote: >
> What happens with:
> 
> <fmt:bundle basename="bundle1">
>   <fmt:message key="text1"/>
> </fmt:bundle>
> 
> <fmt:bundle basename="bundle2">
>   <fmt:message key="text2"/>
> </fmt:bundle>
> 

That's my workaround as well, but it's just annoying
having to wrap fmt:bundle for each fmt:message. I use
more than just 2 bundles on some of my pages.
Struts handle this gracefully by using bean:message
tag and specifying bundle attribute. I expected fmt
tag to have something similar.

Btw, if we wrap each fmt:message with fmt:bundle, will
there be a memory consumption problem?

> <c:forTokens items="..."
>              delims="..."
>              varStatus="status">
>   <c:if test="${status.last}">
>     ...
>   </c:if>
> </c:forEach>

I will try this.
 
> Not that I'm aware of. I'm assuming this is for
> debugging, so you might try

No, it's not for debugging.

I have this folder of hundreds of (i18n-ed) images
separated by locale names (at least that was the
intention, even though it's not java Locale). So it's
easier to rename the locale directory names rather
than reorganizing the whole image folder.

I want to use the current locale as part of the img
src value. And I don't think it's right to put the
value inside resource properties file since locale is
not a word to translate.

> something like:
> 
> <%@ page import="javax.servlet.jsp.jstl.core.*" %>
> ...
> <%
> LocalizationContext locCtx =
> Config.find(pageContext,
>                                         
> Config.FMT_LOCALIZATION_CONTEXT);
> pageContext.setAttribute("locCtxLocale",
> locCtx.getLocale());
> %>
> <c:out value="${locCtxLocale}"/>
>

I did it with scriptlet, and it's not hard to write a
custom tag to achieve this (I think).
I was just wondering if fmt or i18n tag support this
already anyway.

Thank you.
 
Harod Ruthgar
- when the horn doesn't work, watch out for the
fingers


http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to