Name
LoopTagStatus
Synopsis
The LoopTagStatus
interface methods provides access to the iteration status and the
current iteration element. Instances of this interface can be
accessed through the LoopTag
interface,
implemented by iteration actions such as the
<c:forEach>
action.
Synopsis
Interface name: |
|
Extends: |
None |
Implemented by: |
JSTL and custom action tag handler classes. |
Methods
-
public Integer getBegin( )
Returns the
begin
attribute value for the associated action element ornull
if not specified.-
public int getCount( )
Returns the current 1-based iteration count.
-
public Object getCurrent( )
Returns the current iteration element.
-
public int getIndex( )
Returns the current 0-based iteration index.
-
public Integer getStart( )
Returns the
start
attribute value for the associated action element ornull
if not specified.-
public Integer getStep( )
Returns the
step
attribute value for the associated action element ornull
if not specified.-
public boolean isFirst( )
Returns
true
for the first iteration round.-
public boolean isLast( )
Returns
true
for the last iteration round.
Get JavaServer Pages, Second 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.