org.apache.taglibs.dbtags.resultset
Class WasNotEmptyTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.taglibs.dbtags.resultset.WasEmptyTag
          extended by org.apache.taglibs.dbtags.resultset.WasNotEmptyTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class WasNotEmptyTag
extends WasEmptyTag

Executes its body if the last ResultSet tag received more than 0 rows from the database. You must be after a ResultSet tag and inside a StatementTag or PreparedStatementTag, or an error will be generated.

JSP Tag Lib Descriptor

 <name>wasNotEmpty</name>
 <tagclass>org.apache.taglibs.dbtags.statement.WasNotEmptyTag</tagclass>
 <bodycontent>JSP</bodycontent>
 <info>
 Executes its body if the last ResultSet tag received more than 0 rows
 from the database.  You must be after a ResultSet tag and inside
 a StatementTag or PreparedStatementTag, or an error will be generated.
 </info>
 

Author:
Morgan Delagrange
See Also:
WasEmptyTag, Serialized Form

Field Summary
 
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
 
Constructor Summary
WasNotEmptyTag()
          Constructor instructs the superclass to only execute the body if the last ResultSet returned more than 0 rows.
 
Method Summary
 
Methods inherited from class org.apache.taglibs.dbtags.resultset.WasEmptyTag
doStartTag, release, setValue
 
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
 

Constructor Detail

WasNotEmptyTag

public WasNotEmptyTag()
Constructor instructs the superclass to only execute the body if the last ResultSet returned more than 0 rows.



Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.