org.apache.taglibs.dbtags.resultset
Class WasNullTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.dbtags.resultset.WasNullTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- WasNotNullTag
- public class WasNullTag
- extends javax.servlet.jsp.tagext.TagSupport
Executes its body if the last getColumn tag received a null value
from the database. You must be inside a resultset tag and there must
be a previous getColumn tag, or an error will be generated.
The subclass WasNotNull sets the "value" property to false,
and therefore executes its tag body is the last column was
not null.
JSP Tag Lib Descriptor
<name>wasNull</name>
<tagclass>org.apache.taglibs.dbtags.resultset.WasNullTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>Executes its body if the last getColumn tag received a null value
from the database. You must be inside a resultset tag and there must
be a previous getColumn tag, or an error will be generated.</info>
- Author:
- Morgan Delagrange
- See Also:
WasNotNullTag
,
Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
int |
doStartTag()
|
void |
release()
|
void |
setValue(boolean value)
Sets the necessary boolean value in order to
execute the tag body. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WasNullTag
public WasNullTag()
setValue
public void setValue(boolean value)
- Sets the necessary boolean value in order to
execute the tag body.
- Parameters:
value
-
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
release
public void release()
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.