org.apache.taglibs.dbtags.resultset
Class RowCountTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.taglibs.dbtags.resultset.RowCountTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class RowCountTag
extends javax.servlet.jsp.tagext.TagSupport

Prints out the number of rows retrieved from the database. It can be used inside a ResultSet tag to provide a running count of rows retreived, or after the ResultSet tag to display the total number. Using the tag before the ResultSet will produce an error.

JSP Tag Lib Descriptor

 <name>rowCount</name>
 <tagclass>org.apache.taglibs.dbtags.statement.RowCountTag</tagclass>
 <bodycontent>empty</bodycontent>
 <info>Prints out the number of rows retrieved from the database.
 It can be used inside a ResultSet tag to provide a running
 count of rows retreived, or after the ResultSet tag to
 display the total number.  Using the tag before the ResultSet
  will
 produce an error.</info>
 

Author:
Morgan Delagrange
See Also:
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
RowCountTag()
           
 
Method Summary
 int doStartTag()
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, 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
 

Constructor Detail

RowCountTag

public RowCountTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException


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