You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Martin van Dijken <mv...@madocke.nl> on 2003/10/01 09:46:31 UTC
RE: JSTL / fmt locale question
Hey Dima,
Could you post a little more source of your JSP page? This looks OK to me, so I'd need a little more information to check what's going wrong.
Grtz,
Martin
> -----Original Message-----
> From: Dima Gutzeit [mailto:dima@mailvision.net]
> Sent: dinsdag 30 september 2003 21:40
> To: taglibs-user@jakarta.apache.org
> Subject: JSTL / fmt locale question
>
>
> Hi everybody ,
>
> Recently I've encountered a very annoying behavior of fmt
> taglib (JSTL).
>
> I am using some bundle ,called "audioLabels" to localize some
> messages in my JSP/VXML application. The problem is that I
> CAN not change the locale it uses, no matter what I do with
> the <fmt:setLocale> tag. It uses the default file
> "audioLablels.properties" file or the default system language
> file "audioLablels_us.properties" file. The application seems
> to "ignore" my statements such this :
>
> <fmt:setLocale value="${settingsQuery.rows[0].AudioLanguage}"
> scope="session"/>
>
> Where the settingsQuery.rows[0].AudioLanguage == ru , for example.
>
> Does anybody know why can this happen ? I've tried to
> download the latest taglibs release and nothing helped
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
Re: JSTL / fmt locale question
Posted by Dima Gutzeit <di...@mailvision.net>.
Here is a code snippet of bundle declaration in the main JSP file of the
application :
<%-- Creating audio files bundle --%>
<fmt:setBundle basename="audioLabels" var="audioLabels"
scope="session"/>
<fmt:setLocale value="${settingsQuery.rows[0].AudioLanguage}"
scope="session"/>
And here is an example of the usage , another JSP file of the same
application:
(Declaration of some VXML variable ...)
<var name="message" expr="'<fmt:message bundle="${audioLabels}"
key="message.new.mail"/>'"/>
Thanks.
----- Original Message -----
From: "Martin van Dijken" <mv...@madocke.nl>
To: "Tag Libraries Users List" <ta...@jakarta.apache.org>
Sent: Wednesday, October 01, 2003 9:46 AM
Subject: RE: JSTL / fmt locale question
Hey Dima,
Could you post a little more source of your JSP page? This looks OK to me,
so I'd need a little more information to check what's going wrong.
Grtz,
Martin
> -----Original Message-----
> From: Dima Gutzeit [mailto:dima@mailvision.net]
> Sent: dinsdag 30 september 2003 21:40
> To: taglibs-user@jakarta.apache.org
> Subject: JSTL / fmt locale question
>
>
> Hi everybody ,
>
> Recently I've encountered a very annoying behavior of fmt
> taglib (JSTL).
>
> I am using some bundle ,called "audioLabels" to localize some
> messages in my JSP/VXML application. The problem is that I
> CAN not change the locale it uses, no matter what I do with
> the <fmt:setLocale> tag. It uses the default file
> "audioLablels.properties" file or the default system language
> file "audioLablels_us.properties" file. The application seems
> to "ignore" my statements such this :
>
> <fmt:setLocale value="${settingsQuery.rows[0].AudioLanguage}"
> scope="session"/>
>
> Where the settingsQuery.rows[0].AudioLanguage == ru , for example.
>
> Does anybody know why can this happen ? I've tried to
> download the latest taglibs release and nothing helped
>
---------------------------------------------------------------------
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