1 18 19 package org.apache.strutsel.taglib.html; 20 21 import org.apache.struts.taglib.html.BaseTag; 22 import javax.servlet.jsp.JspException ; 23 import org.apache.strutsel.taglib.utils.EvalHelper; 24 25 41 public class ELBaseTag extends BaseTag { 42 43 47 private String targetExpr; 48 52 private String serverExpr; 53 54 58 public String getTargetExpr() { return (targetExpr); } 59 63 public String getServerExpr() { return (serverExpr); } 64 65 69 public void setTargetExpr(String targetExpr) { this.targetExpr = targetExpr; } 70 74 public void setServerExpr(String serverExpr) { this.serverExpr = serverExpr; } 75 76 79 public void release() 80 { 81 super.release(); 82 setTargetExpr(null); 83 setServerExpr(null); 84 } 85 86 91 public int doStartTag() throws JspException { 92 evaluateExpressions(); 93 return (super.doStartTag()); 94 } 95 96 102 private void evaluateExpressions() throws JspException { 103 String string = null; 104 105 if ((string = EvalHelper.evalString("target", getTargetExpr(), 106 this, pageContext)) != null) 107 setTarget(string); 108 109 if ((string = EvalHelper.evalString("server", getServerExpr(), 110 this, pageContext)) != null) 111 setServer(string); 112 } 113 } 114 | Popular Tags |