1 16 17 package org.apache.taglibs.standard.tag.el.xml; 18 19 import javax.servlet.jsp.JspException ; 20 21 import org.apache.taglibs.standard.tag.common.xml.ParamSupport; 22 import org.apache.taglibs.standard.tag.el.core.ExpressionUtil; 23 24 30 31 public class ParamTag extends ParamSupport { 32 33 36 private String name_; private String value_; 39 40 43 public ParamTag() { 44 super(); 45 init(); 46 } 47 48 49 52 public int doStartTag() throws JspException { 54 55 evaluateExpressions(); 57 58 return super.doStartTag(); 60 } 61 62 63 public void release() { 65 super.release(); 66 init(); 67 } 68 69 70 73 public void setName(String name_) { 75 this.name_ = name_; 76 } 77 78 public void setValue(String value_) { 79 this.value_ = value_; 80 } 81 82 83 86 private void init() { 88 name_ = value_ = null; 90 } 91 92 93 private void evaluateExpressions() throws JspException { 94 101 102 name = (String ) ExpressionUtil.evalNotNull( 103 "param", "name", name_, String .class, this, pageContext); 104 value = ExpressionUtil.evalNotNull( 105 "param", "value", value_, Object .class, this, pageContext); 106 } 107 } 108 | Popular Tags |