use of jodd.util.LoopIterator in project jodd by oblac.
the class LoopingTagSupport method loopBody.
/**
* Loops body.
*/
protected void loopBody() throws JspException {
JspFragment body = getJspBody();
if (body == null) {
return;
}
LoopIterator loopIterator = new LoopIterator(start, end, step, modulus);
if (status != null) {
getJspContext().setAttribute(status, loopIterator);
}
while (loopIterator.next()) {
TagUtil.invokeBody(body);
}
if (status != null) {
getJspContext().removeAttribute(status);
}
}
Aggregations