public abstract class ForEachSupport
extends javax.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 javax.servlet.jsp.jstl.core.LoopTagSupport class instead.
LoopTagSupport
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.util.Iterator |
items |
protected java.lang.Object |
rawItems |
Constructor and Description |
---|
ForEachSupport() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
hasNext() |
protected java.lang.Object |
next() |
protected void |
prepare() |
void |
release() |
doAfterBody, doCatch, doFinally, doStartTag, getCurrent, getDelims, getLoopStatus, setVar, setVarStatus, validateBegin, validateEnd, validateStep
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected void prepare() throws javax.servlet.jsp.JspTagException
prepare
in class javax.servlet.jsp.jstl.core.LoopTagSupport
javax.servlet.jsp.JspTagException
protected boolean hasNext() throws javax.servlet.jsp.JspTagException
hasNext
in class javax.servlet.jsp.jstl.core.LoopTagSupport
javax.servlet.jsp.JspTagException
protected java.lang.Object next() throws javax.servlet.jsp.JspTagException
next
in class javax.servlet.jsp.jstl.core.LoopTagSupport
javax.servlet.jsp.JspTagException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.jstl.core.LoopTagSupport
Copyright © 2014–2020. All rights reserved.