jodd.servlet.tags.basic
Class IteratorTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byjodd.servlet.tags.basic.IteratorTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class IteratorTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Collection iterator tag. Iterates a collection, starting from offset and length number of items. For every itteration, tag returns following variables:

See Also:
Serialized Form

Field Summary
static java.lang.String COUNT_NAME
           
static java.lang.String ELEMENT_NAME
           
static java.lang.String INDEX_NAME
           
static java.lang.String TOTAL_NAME
           
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
IteratorTag()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
 void setCollection(java.util.Collection c)
           
 void setLength(java.lang.String s)
           
 void setOffset(int i)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

ELEMENT_NAME

public static final java.lang.String ELEMENT_NAME
See Also:
Constant Field Values

COUNT_NAME

public static final java.lang.String COUNT_NAME
See Also:
Constant Field Values

TOTAL_NAME

public static final java.lang.String TOTAL_NAME
See Also:
Constant Field Values

INDEX_NAME

public static final java.lang.String INDEX_NAME
See Also:
Constant Field Values
Constructor Detail

IteratorTag

public IteratorTag()
Method Detail

setCollection

public void setCollection(java.util.Collection c)

setOffset

public void setOffset(int i)

setLength

public void setLength(java.lang.String s)

doStartTag

public int doStartTag()

doAfterBody

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

doEndTag

public int doEndTag()


Jodd v0.24.5 Javadoc