1 16 17 package org.apache.taglibs.standard.tag.el.fmt; 18 19 import javax.servlet.jsp.JspException ; 20 21 import org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager; 22 import org.apache.taglibs.standard.tag.common.fmt.SetTimeZoneSupport; 23 24 31 32 public class SetTimeZoneTag extends SetTimeZoneSupport { 33 34 37 private String value_; 39 40 43 48 public SetTimeZoneTag() { 49 super(); 50 init(); 51 } 52 53 54 57 public int doStartTag() throws JspException { 59 60 evaluateExpressions(); 62 63 return super.doStartTag(); 65 } 66 67 public void release() { 69 super.release(); 70 init(); 71 } 72 73 74 77 public void setValue(String value_) { 79 this.value_ = value_; 80 } 81 82 83 86 private void init() { 88 value_ = null; 90 } 91 92 private void evaluateExpressions() throws JspException { 94 95 value = ExpressionEvaluatorManager.evaluate( 97 "value", value_, Object .class, this, pageContext); 98 } 99 } 100 | Popular Tags |