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.RedirectSupport; 22 23 29 30 public class RedirectTag extends RedirectSupport { 31 32 35 private String url_; private String context_; 38 39 42 47 public RedirectTag() { 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 setUrl(String url_) { 78 this.url_ = url_; 79 } 80 81 public void setContext(String context_) { 82 this.context_ = context_; 83 } 84 85 88 private void init() { 90 url_ = context_ = null; 92 } 93 94 95 private void evaluateExpressions() throws JspException { 96 103 104 url = (String ) ExpressionUtil.evalNotNull( 105 "redirect", "url", url_, String .class, this, pageContext); 106 context = (String ) ExpressionUtil.evalNotNull( 107 "redirect", "context", context_, String .class, this, pageContext); 108 } 109 } 110 | Popular Tags |