You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by lu...@apache.org on 2002/01/10 03:24:53 UTC

cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt LocaleSupport.java

luehe       02/01/09 18:24:53

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/fmt
                        LocaleSupport.java
  Log:
  Check javax.servlet.jsp.jstl.i18n.locale context configuration parameter in addition to scoped attribute when determining formatting locale (this is consistent with how resource bundle locale gets determined)
  
  Revision  Changes    Path
  1.8       +2 -2      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/LocaleSupport.java
  
  Index: LocaleSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/LocaleSupport.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- LocaleSupport.java	9 Jan 2002 19:51:47 -0000	1.7
  +++ LocaleSupport.java	10 Jan 2002 02:24:53 -0000	1.8
  @@ -223,7 +223,7 @@
        *
        * <ul>
        * <li> If the <tt>javax.servlet.jsp.jstl.i18n.locale</tt> scoped
  -     * attribute exists, use its locale.
  +     * attribute or context configuration parameter exists, use its locale.
        *
        * <li> If the formatting action is enclosed within a <bundle> action, use
        * the locale of the parent bundle.
  @@ -251,7 +251,7 @@
   				      Tag fromTag,
   				      boolean format,
   				      Locale[] avail) {
  -	Locale ret = (Locale) pageContext.findAttribute(LOCALE);
  +	Locale ret = getLocale(pageContext, LOCALE);
   	if (ret == null) {
   	    Tag t = findAncestorWithClass(fromTag, BundleSupport.class);
   	    if (t != null) {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>