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.RequestEncodingSupport; 23 24 30 31 public class RequestEncodingTag extends RequestEncodingSupport { 32 33 36 private String value_; 38 39 42 47 public RequestEncodingTag() { 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 } 80 81 82 85 private void init() { 87 value_ = null; 89 } 90 91 private void evaluateExpressions() throws JspException { 93 100 101 if (value_ != null) { 102 value = (String ) ExpressionEvaluatorManager.evaluate( 103 "value", value_, String .class, this, pageContext); 104 } 105 } 106 } 107 | Popular Tags |