1 16 17 package org.apache.taglibs.standard.tag.el.core; 18 19 import javax.servlet.jsp.JspException ; 20 21 import org.apache.taglibs.standard.tag.common.core.ParamSupport; 22 23 29 30 public class ParamTag extends ParamSupport { 31 32 35 private String name_; 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 67 public void release() { 69 super.release(); 70 init(); 71 } 72 73 74 77 public void setName(String name_) { 79 this.name_ = name_; 80 } 81 82 public void setValue(String value_) { 83 this.value_ = value_; 84 } 85 86 87 90 private void init() { 92 name_ = value_ = null; 94 } 95 96 97 private void evaluateExpressions() throws JspException { 98 105 106 name = (String ) ExpressionUtil.evalNotNull( 107 "import", "name", name_, String .class, this, pageContext); 108 value = (String ) ExpressionUtil.evalNotNull( 109 "import", "value", value_, String .class, this, pageContext); 110 } 111 } 112 | Popular Tags |