1 16 17 package org.apache.taglibs.standard.tag.common.xml; 18 19 import javax.servlet.jsp.JspTagException ; 20 import javax.servlet.jsp.jstl.core.ConditionalTagSupport; 21 22 27 28 public class IfTag extends ConditionalTagSupport { 29 30 33 public IfTag() { 35 super(); 36 init(); 37 } 38 39 public void release() { 41 super.release(); 42 init(); 43 } 44 45 46 49 protected boolean condition() throws JspTagException { 50 XPathUtil xu = new XPathUtil(pageContext); 51 return (xu.booleanValueOf(XPathUtil.getContext(this), select)); 52 } 53 54 55 58 private String select; 60 61 64 public void setSelect(String select) { 65 this.select = select; 66 } 67 68 69 72 private void init() { 74 select = null; 75 } 76 } 77 | Popular Tags |