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;
Method Summary |
int |
doAfterBody()
Tags call doAfterBody after processing the tag body. |
EVAL_BODY_AGAIN
public static final int EVAL_BODY_AGAIN
- Constant to reiterate the body.
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.