Class ForEachTag

  • 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

    public class ForEachTag
    extends jakarta.servlet.jsp.jstl.core.LoopTagSupport

    Support for the XML library's <forEach> tag.

    Author:
    Shawn Bayern
    See Also:
    LoopTagSupport, Serialized Form
    • Field Summary

      • Fields inherited from class jakarta.servlet.jsp.jstl.core.LoopTagSupport

        begin, beginSpecified, deferredExpression, end, endSpecified, itemId, statusId, step, stepSpecified
      • Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      ForEachTag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Node getContext()  
      protected boolean hasNext()  
      protected Object next()  
      protected void prepare()  
      void release()  
      void setBegin​(int begin)  
      void setEnd​(int end)  
      void setSelect​(String select)  
      void setStep​(int step)  
      • Methods inherited from class jakarta.servlet.jsp.jstl.core.LoopTagSupport

        doAfterBody, doCatch, doFinally, doStartTag, getCurrent, getDelims, getLoopStatus, setVar, setVarStatus, validateBegin, validateEnd, validateStep
      • Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport

        doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from interface jakarta.servlet.jsp.tagext.Tag

        doEndTag, getParent, setPageContext, setParent
    • Constructor Detail

      • ForEachTag

        public ForEachTag()
    • Method Detail

      • prepare

        protected void prepare()
                        throws jakarta.servlet.jsp.JspTagException
        Specified by:
        prepare in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
        Throws:
        jakarta.servlet.jsp.JspTagException
      • hasNext

        protected boolean hasNext()
                           throws jakarta.servlet.jsp.JspTagException
        Specified by:
        hasNext in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
        Throws:
        jakarta.servlet.jsp.JspTagException
      • next

        protected Object next()
                       throws jakarta.servlet.jsp.JspTagException
        Specified by:
        next in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
        Throws:
        jakarta.servlet.jsp.JspTagException
      • release

        public void release()
        Specified by:
        release in interface jakarta.servlet.jsp.tagext.Tag
        Overrides:
        release in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
      • setSelect

        public void setSelect​(String select)
      • setBegin

        public void setBegin​(int begin)
                      throws jakarta.servlet.jsp.JspTagException
        Throws:
        jakarta.servlet.jsp.JspTagException
      • setEnd

        public void setEnd​(int end)
                    throws jakarta.servlet.jsp.JspTagException
        Throws:
        jakarta.servlet.jsp.JspTagException
      • setStep

        public void setStep​(int step)
                     throws jakarta.servlet.jsp.JspTagException
        Throws:
        jakarta.servlet.jsp.JspTagException
      • getContext

        public Node getContext()
                        throws jakarta.servlet.jsp.JspTagException
        Throws:
        jakarta.servlet.jsp.JspTagException