tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13523] - problem using JSTL fmt:setLocale with Tomcat 4.1.9
Date Tue, 04 Feb 2003 05:04:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13523>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13523

problem using JSTL fmt:setLocale with Tomcat 4.1.9

bradley.scott@emagine-int.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW



------- Additional Comments From bradley.scott@emagine-int.com  2003-02-04 05:04 -------
When I try to use fmt:setLocale, supplying a scope attribute, the server throws 
a RuntimeException.

Example:
    <fmt:setLocale value="ja" scope="session" />
Error message:
    Illegal scope attribute without var in "fmt:setLocale" tag
Exception:
    java.lang.RuntimeException: org.apache.jasper.JasperException: 
<h3>Validation error messages from tag library fmt</h3>Illegal scope attribute

without var in "fmt:setLocale" tag.

The JSTL spec (version 1.0) for fmt:setLocale is:
   <fmt:setLocale value="locale"
      [variant="variant"]
      [scope="{page|request|session|application}"]/>

therefore I cannot supply a var attribute, nor would it make much sense to do 
so.

Is there another way to set the Locale at the session scope for use with the 
other fmt tags?

This was tested on standard taglib release 1.0.2, servlet engine: JBoss v3.0.4

Regards,
Brad.

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


Mime
View raw message