FileDocCategorySizeDatePackage
LoopTag.javaAPI DocGlassfish v2 API3293Sat May 05 19:17:14 BST 2007javax.servlet.jsp.jstl.core

LoopTag

public interface LoopTag implements javax.servlet.jsp.tagext.Tag

JSTL 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 implicit collaboration 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.

author
Shawn Bayern

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectgetCurrent()
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.)

return
the current item as an object

public LoopTagStatusgetLoopStatus()
Retrieves a 'status' object to provide information about the current round of the iteration.

return
The LoopTagStatus for the current LoopTag.