Class ForEachTag
- java.lang.Object
-
- jakarta.servlet.jsp.tagext.TagSupport
-
- jakarta.servlet.jsp.jstl.core.LoopTagSupport
-
- org.apache.taglibs.standard.tag.common.core.ForEachSupport
-
- org.apache.taglibs.standard.tag.el.core.ForEachTag
-
- All Implemented Interfaces:
LoopTag,IterationTag,JspTag,Tag,TryCatchFinally,Serializable
public class ForEachTag extends ForEachSupport implements LoopTag, IterationTag
A handler for <forEach> that accepts attributes as Strings and evaluates them as expressions at runtime.
- Author:
- Shawn Bayern
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.taglibs.standard.tag.common.core.ForEachSupport
ForEachSupport.ForEachIterator, ForEachSupport.SimpleForEachIterator
-
-
Field Summary
-
Fields inherited from class org.apache.taglibs.standard.tag.common.core.ForEachSupport
items, rawItems
-
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 intdoStartTag()Begins iterating by processing the first item.voidrelease()Releases any resources this LoopTagSupport may have (or inherit).voidsetBegin(String begin_)voidsetEnd(String end_)voidsetItems(String items_)voidsetStep(String step_)-
Methods inherited from class org.apache.taglibs.standard.tag.common.core.ForEachSupport
hasNext, next, prepare, supportedTypeForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator
-
Methods inherited from class jakarta.servlet.jsp.jstl.core.LoopTagSupport
doAfterBody, doCatch, doFinally, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.servlet.jsp.tagext.IterationTag
doAfterBody
-
Methods inherited from interface jakarta.servlet.jsp.jstl.core.LoopTag
getCurrent, getLoopStatus
-
Methods inherited from interface jakarta.servlet.jsp.tagext.Tag
doEndTag, getParent, setPageContext, setParent
-
-
-
-
Method Detail
-
doStartTag
public int doStartTag() throws JspExceptionDescription copied from class:LoopTagSupportBegins iterating by processing the first item.- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classLoopTagSupport- Returns:
- SKIP_BODY
- Throws:
JspException- if an error occurs while processing this tag- See Also:
Tag.doStartTag()
-
release
public void release()
Description copied from class:LoopTagSupportReleases any resources this LoopTagSupport may have (or inherit).- Specified by:
releasein interfaceTag- Overrides:
releasein classForEachSupport- See Also:
Tag.release()
-
setBegin
public void setBegin(String begin_)
-
setEnd
public void setEnd(String end_)
-
setStep
public void setStep(String step_)
-
setItems
public void setItems(String items_)
-
-