org.apache.taglibs.session
Class IsNewTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.apache.taglibs.session.IsNewTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class IsNewTag
- extends javax.servlet.jsp.tagext.TagSupport
JSP Tag isNew, used to test whether the HTTPSession is new.
Includes the body of the tag if the session is new.
You can set the optional tag attribute value to true or
false. The body of the tag is included if isNew matches
the value.
JSP Tag Lib Descriptor
<name>isNew</name>
<tagclass>org.apache.taglibs.session.IsNewTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>Used to determine if a session is new.</info>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
- Author:
- Glenn Nielsen
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
int |
doStartTag()
Used to test whether the HTTP session is new. |
void |
setValue(boolean value)
Set the isNew tag optional attribute value to true
or false. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsNewTag
public IsNewTag()
doStartTag
public final int doStartTag()
throws javax.servlet.jsp.JspException
- Used to test whether the HTTP session is new.
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
- Returns:
- SKIP_BODY if isNew doesn't match value, EVAL_BODY_include if isNew matches value
setValue
public final void setValue(boolean value)
- Set the isNew tag optional attribute value to true
or false.
- Parameters:
boolean
- true or false
Copyright ? 2000 Apache Software Foundation. All Rights Reserved.