jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt SetTimeZoneSupport.java
Date Thu, 18 Apr 2002 22:36:01 GMT
luehe       02/04/18 15:36:01

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/fmt
                        SetTimeZoneSupport.java
  Log:
  Fixed 8282: <fmt:setTimeZone> fails to export var if specified
  
  Revision  Changes    Path
  1.3       +8 -3      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/SetTimeZoneSupport.java
  
  Index: SetTimeZoneSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/SetTimeZoneSupport.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SetTimeZoneSupport.java	14 Apr 2002 04:48:46 -0000	1.2
  +++ SetTimeZoneSupport.java	18 Apr 2002 22:36:01 -0000	1.3
  @@ -94,8 +94,9 @@
   	init();
       }
   
  +    // resets local state
       private void init() {
  -	value = null;
  +	value = var = null;
   	scope = "page";
       }
   
  @@ -130,8 +131,12 @@
   	    timeZone = (TimeZone) value;
   	}
   
  -	Config.set(pageContext, Config.FMT_TIMEZONE, timeZone,
  -		   Util.getScope(scope));
  +	if (var != null) {
  +	    pageContext.setAttribute(var, timeZone, Util.getScope(scope));
  +	} else {
  +	    Config.set(pageContext, Config.FMT_TIMEZONE, timeZone,
  +		       Util.getScope(scope));
  +	}
   
   	return EVAL_PAGE;
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message