javax.servlet.jsp.tagext
Interface IterationTag

All Superinterfaces:
Tag

public interface IterationTag
extends Tag

IterationTag lets tags loop over the body.

The generated code looks something like:


 if (tag.doStartTag() == EVAL_BODY_INCLUDE) {
   do {
     ...
   } while (tag.doAfterBody() == EVAL_BODY_AGAIN);
 }
 if (tag.doEndTag() == SKIP_PAGE)
   return;
 


Field Summary
static int EVAL_BODY_AGAIN
          Constant to reiterate the body.
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Method Summary
 int doAfterBody()
          Tags call doAfterBody after processing the tag body.
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, release, setPageContext, setParent
 

Field Detail

EVAL_BODY_AGAIN

public static final int EVAL_BODY_AGAIN
Constant to reiterate the body.
Method Detail

doAfterBody

public int doAfterBody()
                throws JspException
Tags call doAfterBody after processing the tag body. By returning EVAL_BODY_AGAIN, an iterator tag can repeat evaluation of the tag body.

empty tags and tags returning SKIP_BODY do not call doAfterBody.

Returns:
EVAL_BODY_AGAIN to repeat the tag and SKIP_PAGE to stop.