org.apache.taglibs.standard.tag.common.core
Class ForEachSupport
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.jstl.core.LoopTagSupport
org.apache.taglibs.standard.tag.common.core.ForEachSupport
- All Implemented Interfaces:
- java.io.Serializable, LoopTag, IterationTag, JspTag, Tag, TryCatchFinally
- Direct Known Subclasses:
- ForEachTag, ForEachTag
public abstract class ForEachSupport
- extends 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.
- Author:
- Shawn Bayern
- See Also:
LoopTagSupport,
Serialized Form
| Methods inherited from class javax.servlet.jsp.jstl.core.LoopTagSupport |
doAfterBody, doCatch, doFinally, doStartTag, getCurrent, getDelims, getLoopStatus, setVar, setVarStatus, validateBegin, validateEnd, validateStep |
| Methods inherited from class javax.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 |
items
protected ForEachSupport.ForEachIterator items
rawItems
protected java.lang.Object rawItems
ForEachSupport
public ForEachSupport()
hasNext
protected boolean hasNext()
throws JspTagException
- Specified by:
hasNext in class LoopTagSupport
- Throws:
JspTagException
next
protected java.lang.Object next()
throws JspTagException
- Specified by:
next in class LoopTagSupport
- Throws:
JspTagException
prepare
protected void prepare()
throws JspTagException
- Specified by:
prepare in class LoopTagSupport
- Throws:
JspTagException
release
public void release()
- Specified by:
release in interface Tag- Overrides:
release in class LoopTagSupport
supportedTypeForEachIterator
protected ForEachSupport.ForEachIterator supportedTypeForEachIterator(java.lang.Object o)
throws JspTagException
- Throws:
JspTagException
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(java.lang.Object o)
throws JspTagException
- Throws:
JspTagException
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(java.lang.Object[] a)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(boolean[] a)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(byte[] a)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(char[] a)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(short[] a)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(int[] a)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(long[] a)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(float[] a)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(double[] a)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(java.util.Collection c)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(java.util.Iterator i)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(java.util.Enumeration e)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(java.util.Map m)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(java.lang.String s)
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.