1 16 17 package org.apache.taglibs.session; 18 19 import java.util.*; 20 import javax.servlet.*; 21 import javax.servlet.http.*; 22 import javax.servlet.jsp.*; 23 import javax.servlet.jsp.tagext.*; 24 25 49 50 public class IsNewTag extends TagSupport 51 { 52 private boolean value = true; 53 54 59 public final int doStartTag() throws JspException 60 { 61 boolean result = pageContext.getSession().isNew(); 62 if( value == result ) 63 return EVAL_BODY_INCLUDE; 64 return SKIP_BODY; 65 } 66 67 73 public final void setValue(boolean value) 74 { 75 this.value = value; 76 } 77 } 78 | Popular Tags |