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.ParamSupport; 23 24 30 31 public class ParamTag extends ParamSupport { 32 33 36 private String value_; 38 39 42 47 public ParamTag() { 48 super(); 49 init(); 50 } 51 52 53 56 public int doStartTag() throws JspException { 58 59 evaluateExpressions(); 61 62 return super.doStartTag(); 64 } 65 66 public void release() { 68 super.release(); 69 init(); 70 } 71 72 73 76 public void setValue(String value_) { 78 this.value_ = value_; 79 this.valueSpecified = true; 80 } 81 82 83 86 private void init() { 88 value_ = null; 90 } 91 92 private void evaluateExpressions() throws JspException { 94 101 102 if (value_ != null) { 103 value = ExpressionEvaluatorManager.evaluate( 104 "value", value_, Object .class, this, pageContext); 105 } 106 } 107 } 108 | Popular Tags |