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.UrlSupport; 22 23 29 30 public class UrlTag extends UrlSupport { 31 32 35 private String value_; private String context_; 38 39 42 47 public UrlTag() { 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 setValue(String value_) { 78 this.value_ = value_; 79 } 80 81 public void setContext(String context_) { 82 this.context_ = context_; 83 } 84 85 86 89 private void init() { 91 value_ = null; 93 } 94 95 96 private void evaluateExpressions() throws JspException { 97 104 105 value = (String ) ExpressionUtil.evalNotNull( 106 "url", "value", value_, String .class, this, pageContext); 107 context = (String ) ExpressionUtil.evalNotNull( 108 "url", "context", context_, String .class, this, pageContext); 109 } 110 } 111 | Popular Tags |