/** * {@inheritDoc} */ @Override public void setEnd(final int end) { super.setEnd(end); if (isEndSpecified) { throw new IllegalArgumentException("End boundary already specified"); } isEndSpecified = true; }
/** * 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); } } }