org.apache.taglibs.standard.tag.common.xml
Class ForEachTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.jstl.core.LoopTagSupport
          extended by org.apache.taglibs.standard.tag.common.xml.ForEachTag
All Implemented Interfaces:
java.io.Serializable, LoopTag, IterationTag, JspTag, Tag, TryCatchFinally

public class ForEachTag
extends LoopTagSupport

Support for the XML library's <forEach> tag.

Author:
Shawn Bayern
See Also:
LoopTagSupport, Serialized Form

Field Summary
 
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.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
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
 
Constructor Summary
ForEachTag()
           
 
Method Summary
 org.w3c.dom.Node getContext()
           
protected  boolean hasNext()
           
protected  java.lang.Object next()
           
protected  void prepare()
           
 void release()
           
 void setBegin(int begin)
           
 void setEnd(int end)
           
 void setSelect(java.lang.String select)
           
 void setStep(int step)
           
 
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
doEndTag, getParent, setPageContext, setParent
 

Constructor Detail

ForEachTag

public ForEachTag()
Method Detail

prepare

protected void prepare()
                throws JspTagException
Specified by:
prepare in class LoopTagSupport
Throws:
JspTagException

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

release

public void release()
Specified by:
release in interface Tag
Overrides:
release in class LoopTagSupport

setSelect

public void setSelect(java.lang.String select)

setBegin

public void setBegin(int begin)
              throws JspTagException
Throws:
JspTagException

setEnd

public void setEnd(int end)
            throws JspTagException
Throws:
JspTagException

setStep

public void setStep(int step)
             throws JspTagException
Throws:
JspTagException

getContext

public org.w3c.dom.Node getContext()
                            throws JspTagException
Throws:
JspTagException


Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.