Class ForEachSupport

  • All Implemented Interfaces:
    jakarta.servlet.jsp.jstl.core.LoopTag, jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, jakarta.servlet.jsp.tagext.TryCatchFinally, Serializable
    Direct Known Subclasses:
    ForEachTag, ForEachTag

    public abstract class ForEachSupport
    extends jakarta.servlet.jsp.jstl.core.LoopTagSupport

    Support for tag handlers for <forEach>, the core iteration tag in JSTL 1.0. This class extends LoopTagSupport and provides ForEach-specific functionality. The rtexprvalue library and the expression-evaluating library each have handlers that extend this class.

    Localized here is the logic for handling the veritable smorgasbord of types supported by <forEach>, including arrays, Collections, and others. To see how the actual iteration is controlled, review the jakarta.servlet.jsp.jstl.core.LoopTagSupport class instead.

    Author:
    Shawn Bayern
    See Also:
    LoopTagSupport, Serialized Form