Name

LoopTagSupport

Synopsis

The LoopTagSupport class can be extended by a tag handler for a custom iteration action.

Synopsis

Class name:

javax.servlet.jsp.jstl.core.LoopTagSupport

Extends:

javax.servlet.jsp.tagext.TagSupport

Implements:

javax.servlet.jsp.jstl.core.LoopTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.TryCatchFinallyTag

Fields

protected int begin
protected boolean beginSpecified
protected int end
protected boolean endSpecified
protected int itemId
protected int statusId
protected int step
protected boolean stepSpecified

Methods

public void doAfterBody( ) throws javax.servlet.jsp.tagext.JspTagException

Prepares for the next iteration until hasNext( ) returns false.

public void doCatch(Throwable t) throws Throwable

Rethrows the exception.

public void doFinally( ) throws javax.servlet.jsp.tagext.JspTagException

Removes the nested variables.

public void doStartTag( ) throws javax.servlet.jsp.tagext.JspTagException

Prepares for the iteration.

protected abstract Object getCurrent( )

Returns the current iteration element.

public javax.servlet.jsp.jstl.core.LoopTagStatus getLoopStatus( )

Returns the iteration status.

protected abstract boolean hasNext( ) throws javax.servlet.jsp.tagext.JspTagException

Returns true if there are more iteration elements.

protected abstract Object next( ) throws javax.servlet.jsp.tagext.JspTagException

Returns the next iteration element.

protected abstract void prepare( ) throws javax.servlet.jsp.tagext.JspTagException ...

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.