webwork.view.taglib
Class IteratorTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bywebwork.view.taglib.WebWorkBodyTagSupport
              extended bywebwork.view.taglib.IteratorTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class IteratorTag
extends WebWorkBodyTagSupport

Tag to iterate over an iterable value. An iterable value can be either of: java.util.Collection, java.util.Iterator, java.util.Enumeration, java.util.Map, array, XML Node, or XML NodeList

Version:
$Revision: 1.9 $
Author:
Rickard Öberg (rickard@dreambean.com)
See Also:
Serialized Form

Field Summary
protected  java.lang.Object currentValue
           
protected  java.util.Iterator iterator
           
protected  java.lang.Object oldStatus
           
protected  IteratorStatus status
           
protected  java.lang.String statusAttr
           
protected  java.lang.String statusName
           
protected  IteratorStatus.StatusState statusState
           
protected  java.lang.String valueAttr
           
 
Fields inherited from class webwork.view.taglib.WebWorkBodyTagSupport
stack
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
IteratorTag()
           
 
Method Summary
 int doAfterBody()
           
 int doStartTag()
           
 void setStatus(java.lang.String aName)
          Set the name of the status object that is to be exposed.
 void setValue(java.lang.String aName)
          Set the name of the property whose value is iterable.
 
Methods inherited from class webwork.view.taglib.WebWorkBodyTagSupport
findString, findValue, getStack, release, setPageContext, setParent, toString
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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
getParent
 

Field Detail

valueAttr

protected java.lang.String valueAttr

statusAttr

protected java.lang.String statusAttr

currentValue

protected java.lang.Object currentValue

iterator

protected java.util.Iterator iterator

status

protected IteratorStatus status

statusState

protected IteratorStatus.StatusState statusState

statusName

protected java.lang.String statusName

oldStatus

protected java.lang.Object oldStatus
Constructor Detail

IteratorTag

public IteratorTag()
Method Detail

setValue

public void setValue(java.lang.String aName)
Set the name of the property whose value is iterable.

Parameters:
aName -

setStatus

public void setStatus(java.lang.String aName)
Set the name of the status object that is to be exposed.

Parameters:
aName -

doStartTag

public int doStartTag()

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException


Copyright © 2001-2003 WebWork All Rights Reserved.