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/04/19 00:36:01 UTC
cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt SetTimeZoneSupport.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>