portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetspeed-...@jakarta.apache.org
Subject [jira] Closed: (JS2-116) JSTL fmt tag not picking up locale from request in Tomcat 5.0
Date Wed, 08 Sep 2004 21:06:37 GMT
Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JS2-116

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JS2-116
    Summary: JSTL fmt tag not picking up locale from request in Tomcat 5.0
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Jetspeed 2
 Components: 
             l10n
   Fix Fors:
             2.0-a1
             2.0-dev/cvs
   Versions:
             2.0-a1
             2.0-dev/cvs

   Assignee: Scott T Weaver
   Reporter: Scott T Weaver

    Created: Wed, 8 Sep 2004 12:50 PM
    Updated: Wed, 8 Sep 2004 2:05 PM

Description:
The JSTL fmt tag is not picking up locale from the J2 request wrappers in Tomcat 5.0.  It
is always using the english default. This can be seen in the PickANumberPortlet when changing
the locale via the LocaleSelectorPortlet.

To get l10n to work I had to add this line to the pickanumber.jsp page:

...
<fmt:setLocale value="${pageContext.request.locale}" />
...

This is not a solution but does verify that, when the locale is correctly set, the correct
bundle is used.  

Since JSTL is part of the 2.4 servlet spec, I have a feeling tomcat is setting the locale
much further up in the request.   I say this because I can change what language my browser
sends and the l10n works fine without the fmt:setLocale tag being used.

A similar issue is documented on the struts list here:
http://www.mail-archive.com/taglibs-user@jakarta.apache.org/msg05838.html


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message