public class SimpleIterator extends TagSupport implements IterationTag { int loopCount; } public void setLoopCount(int loopCount) { this.loopCount = loopCount; }
public int doStartTag() { return EVAL_BODY_INCLUDE; }
public int doAfterBody() { while(--loopCount > 0) return EVAL_BODY_AGAIN; return SKIP_BODY; } }