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 Form| Modifier and Type | Class and Description |
|---|---|
protected static interface |
ForEachSupport.ForEachIterator |
protected class |
ForEachSupport.SimpleForEachIterator |
| Modifier and Type | Field and Description |
|---|---|
protected ForEachSupport.ForEachIterator |
items |
protected Object |
rawItems |
| Constructor and Description |
|---|
ForEachSupport() |
doAfterBody, doCatch, doFinally, doStartTag, getCurrent, getDelims, getLoopStatus, setVar, setVarStatus, validateBegin, validateEnd, validateStepdoEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected ForEachSupport.ForEachIterator items
protected Object rawItems
protected boolean hasNext()
throws javax.servlet.jsp.JspTagException
hasNext in class javax.servlet.jsp.jstl.core.LoopTagSupportjavax.servlet.jsp.JspTagExceptionprotected Object next() throws javax.servlet.jsp.JspTagException
next in class javax.servlet.jsp.jstl.core.LoopTagSupportjavax.servlet.jsp.JspTagExceptionprotected void prepare()
throws javax.servlet.jsp.JspTagException
prepare in class javax.servlet.jsp.jstl.core.LoopTagSupportjavax.servlet.jsp.JspTagExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.jstl.core.LoopTagSupportprotected ForEachSupport.ForEachIterator supportedTypeForEachIterator(Object o) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionprotected ForEachSupport.ForEachIterator toForEachIterator(Object o) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionprotected ForEachSupport.ForEachIterator toForEachIterator(Object[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(boolean[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(byte[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(char[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(short[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(int[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(long[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(float[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(double[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(Collection c)
protected ForEachSupport.ForEachIterator toForEachIterator(Iterator i)
protected ForEachSupport.ForEachIterator toForEachIterator(Enumeration e)
protected ForEachSupport.ForEachIterator toForEachIterator(Map m)
protected ForEachSupport.ForEachIterator toForEachIterator(String s)
Copyright (c) 1999-2012 Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.