javax.servlet.jsp.jstl.core
Interface LoopTag
- All Superinterfaces:
- Tag
- All Known Implementing Classes:
- LoopTagSupport
- public interface LoopTag
- extends Tag
JSTL 1.0 allows developers to write custom iteration tags by
implementing the LoopTag interface. (This is not to be confused
with javax.servlet.jsp.tagext.IterationTag as defined in JSP 1.2.)
LoopTag establishes a mechanism for iteration tags to be recognized
and for type-safe communication with custom subtags.
In most cases, it will not be necessary to implement this interface
manually, for a base support class (LoopTagSupport) is provided
to facilitate implementation.
Method Summary |
java.lang.Object |
getCurrent()
Retrieves the current item in the iteration. |
LoopTagStatus |
getLoopStatus()
Retrieves a 'status' object to provide information about the
current round of the iteration. |
getCurrent
public java.lang.Object getCurrent()
- Retrieves the current item in the iteration. Behaves
idempotently; calling getCurrent() repeatedly should return the same
Object until the iteration is advanced. (Specifically, calling
getCurrent() does not advance the iteration.)
- Returns:
- the current item as an object
getLoopStatus
public LoopTagStatus getLoopStatus()
- Retrieves a 'status' object to provide information about the
current round of the iteration.
- Returns:
- the LoopTagStatus for the current LoopTag