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:
- Serializable, javax.servlet.jsp.jstl.core.LoopTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
- Direct Known Subclasses:
- ForEachTag, ForEachTag
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.
- Author:
- Shawn Bayern
- See Also:
LoopTagSupport,
Serialized Form
| Fields inherited from class javax.servlet.jsp.jstl.core.LoopTagSupport |
begin, beginSpecified, deferredExpression, end, endSpecified, itemId, statusId, step, stepSpecified |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| 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 |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
doEndTag, getParent, setPageContext, setParent |
items
protected ForEachSupport.ForEachIterator items
rawItems
protected Object rawItems
ForEachSupport
public ForEachSupport()
hasNext
protected boolean hasNext()
throws javax.servlet.jsp.JspTagException
- Specified by:
hasNext in class javax.servlet.jsp.jstl.core.LoopTagSupport
- Throws:
javax.servlet.jsp.JspTagException
next
protected Object next()
throws javax.servlet.jsp.JspTagException
- Specified by:
next in class javax.servlet.jsp.jstl.core.LoopTagSupport
- Throws:
javax.servlet.jsp.JspTagException
prepare
protected void prepare()
throws javax.servlet.jsp.JspTagException
- Specified by:
prepare in class javax.servlet.jsp.jstl.core.LoopTagSupport
- Throws:
javax.servlet.jsp.JspTagException
release
public void release()
- Specified by:
release in interface javax.servlet.jsp.tagext.Tag- Overrides:
release in class javax.servlet.jsp.jstl.core.LoopTagSupport
supportedTypeForEachIterator
protected ForEachSupport.ForEachIterator supportedTypeForEachIterator(Object o)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(Object o)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(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(Collection c)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(Iterator i)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(Enumeration e)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(Map m)
toForEachIterator
protected ForEachSupport.ForEachIterator toForEachIterator(String s)
Copyright (c) 1999-2011 Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.