org.apache.strutsel.taglib.logic
Class ELIterateTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.struts.taglib.logic.IterateTag
              extended byorg.apache.strutsel.taglib.logic.ELIterateTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ELIterateTag
extends org.apache.struts.taglib.logic.IterateTag

Custom tag that iterates the elements of a collection, which can be either an attribute or the property of an attribute. The collection can be any of the following: an array of objects, an Enumeration, an Iterator, a Collection (which includes Lists, Sets and Vectors), or a Map (which includes Hashtables) whose elements will be iterated over.

This class is a subclass of the class org.apache.struts.taglib.logic.IterateTag which provides most of the described functionality. This subclass allows all attribute values to be specified as expressions utilizing the JavaServer Pages Standard Library expression language.

Version:
$Rev: 54933 $
See Also:
Serialized Form

Field Summary
private  java.lang.String collectionExpr
          Instance variable mapped to "collection" tag attribute.
private  java.lang.String idExpr
          Instance variable mapped to "id" tag attribute.
private  java.lang.String indexIdExpr
          Instance variable mapped to "indexId" tag attribute.
private  java.lang.String lengthExpr
          Instance variable mapped to "length" tag attribute.
private  java.lang.String nameExpr
          Instance variable mapped to "name" tag attribute.
private  java.lang.String offsetExpr
          Instance variable mapped to "offset" tag attribute.
private  java.lang.String propertyExpr
          Instance variable mapped to "property" tag attribute.
private  java.lang.String scopeExpr
          Instance variable mapped to "scope" tag attribute.
private  java.lang.String typeExpr
          Instance variable mapped to "type" tag attribute.
 
Fields inherited from class org.apache.struts.taglib.logic.IterateTag
collection, id, indexId, iterator, length, lengthCount, lengthValue, messages, name, offset, offsetValue, property, scope, started, type
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
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
ELIterateTag()
           
 
Method Summary
 int doStartTag()
          Process the start tag.
private  void evaluateExpressions()
          Processes all attribute values which use the JSTL expression evaluation engine to determine their values.
 java.lang.String getCollectionExpr()
          Getter method for "collection" tag attribute.
 java.lang.String getIdExpr()
          Getter method for "id" tag attribute.
 java.lang.String getIndexIdExpr()
          Getter method for "indexId" tag attribute.
 java.lang.String getLengthExpr()
          Getter method for "length" tag attribute.
 java.lang.String getNameExpr()
          Getter method for "name" tag attribute.
 java.lang.String getOffsetExpr()
          Getter method for "offset" tag attribute.
 java.lang.String getPropertyExpr()
          Getter method for "property" tag attribute.
 java.lang.String getScopeExpr()
          Getter method for "scope" tag attribute.
 java.lang.String getTypeExpr()
          Getter method for "type" tag attribute.
 void release()
          Releases state of custom tag so this instance can be reused.
 void setCollectionExpr(java.lang.String collectionExpr)
          Setter method for "collection" tag attribute.
 void setIdExpr(java.lang.String idExpr)
          Setter method for "id" tag attribute.
 void setIndexIdExpr(java.lang.String indexIdExpr)
          Setter method for "indexId" tag attribute.
 void setLengthExpr(java.lang.String lengthExpr)
          Setter method for "length" tag attribute.
 void setNameExpr(java.lang.String nameExpr)
          Setter method for "name" tag attribute.
 void setOffsetExpr(java.lang.String offsetExpr)
          Setter method for "offset" tag attribute.
 void setPropertyExpr(java.lang.String propertyExpr)
          Setter method for "property" tag attribute.
 void setScopeExpr(java.lang.String scopeExpr)
          Setter method for "scope" tag attribute.
 void setTypeExpr(java.lang.String typeExpr)
          Setter method for "type" tag attribute.
 
Methods inherited from class org.apache.struts.taglib.logic.IterateTag
doAfterBody, doEndTag, getCollection, getId, getIndex, getIndexId, getLength, getName, getOffset, getProperty, getScope, getType, setCollection, setId, setIndexId, setLength, setName, setOffset, setProperty, setScope, setType
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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
getParent, setPageContext, setParent
 

Field Detail

collectionExpr

private java.lang.String collectionExpr
Instance variable mapped to "collection" tag attribute. (Mapping set in associated BeanInfo class.)


idExpr

private java.lang.String idExpr
Instance variable mapped to "id" tag attribute. (Mapping set in associated BeanInfo class.)


indexIdExpr

private java.lang.String indexIdExpr
Instance variable mapped to "indexId" tag attribute. (Mapping set in associated BeanInfo class.)


lengthExpr

private java.lang.String lengthExpr
Instance variable mapped to "length" tag attribute. (Mapping set in associated BeanInfo class.)


nameExpr

private java.lang.String nameExpr
Instance variable mapped to "name" tag attribute. (Mapping set in associated BeanInfo class.)


offsetExpr

private java.lang.String offsetExpr
Instance variable mapped to "offset" tag attribute. (Mapping set in associated BeanInfo class.)


propertyExpr

private java.lang.String propertyExpr
Instance variable mapped to "property" tag attribute. (Mapping set in associated BeanInfo class.)


scopeExpr

private java.lang.String scopeExpr
Instance variable mapped to "scope" tag attribute. (Mapping set in associated BeanInfo class.)


typeExpr

private java.lang.String typeExpr
Instance variable mapped to "type" tag attribute. (Mapping set in associated BeanInfo class.)

Constructor Detail

ELIterateTag

public ELIterateTag()
Method Detail

getCollectionExpr

public java.lang.String getCollectionExpr()
Getter method for "collection" tag attribute. (Mapping set in associated BeanInfo class.)


getIdExpr

public java.lang.String getIdExpr()
Getter method for "id" tag attribute. (Mapping set in associated BeanInfo class.)


getIndexIdExpr

public java.lang.String getIndexIdExpr()
Getter method for "indexId" tag attribute. (Mapping set in associated BeanInfo class.)


getLengthExpr

public java.lang.String getLengthExpr()
Getter method for "length" tag attribute. (Mapping set in associated BeanInfo class.)


getNameExpr

public java.lang.String getNameExpr()
Getter method for "name" tag attribute. (Mapping set in associated BeanInfo class.)


getOffsetExpr

public java.lang.String getOffsetExpr()
Getter method for "offset" tag attribute. (Mapping set in associated BeanInfo class.)


getPropertyExpr

public java.lang.String getPropertyExpr()
Getter method for "property" tag attribute. (Mapping set in associated BeanInfo class.)


getScopeExpr

public java.lang.String getScopeExpr()
Getter method for "scope" tag attribute. (Mapping set in associated BeanInfo class.)


getTypeExpr

public java.lang.String getTypeExpr()
Getter method for "type" tag attribute. (Mapping set in associated BeanInfo class.)


setCollectionExpr

public void setCollectionExpr(java.lang.String collectionExpr)
Setter method for "collection" tag attribute. (Mapping set in associated BeanInfo class.)


setIdExpr

public void setIdExpr(java.lang.String idExpr)
Setter method for "id" tag attribute. (Mapping set in associated BeanInfo class.)


setIndexIdExpr

public void setIndexIdExpr(java.lang.String indexIdExpr)
Setter method for "indexId" tag attribute. (Mapping set in associated BeanInfo class.)


setLengthExpr

public void setLengthExpr(java.lang.String lengthExpr)
Setter method for "length" tag attribute. (Mapping set in associated BeanInfo class.)


setNameExpr

public void setNameExpr(java.lang.String nameExpr)
Setter method for "name" tag attribute. (Mapping set in associated BeanInfo class.)


setOffsetExpr

public void setOffsetExpr(java.lang.String offsetExpr)
Setter method for "offset" tag attribute. (Mapping set in associated BeanInfo class.)


setPropertyExpr

public void setPropertyExpr(java.lang.String propertyExpr)
Setter method for "property" tag attribute. (Mapping set in associated BeanInfo class.)


setScopeExpr

public void setScopeExpr(java.lang.String scopeExpr)
Setter method for "scope" tag attribute. (Mapping set in associated BeanInfo class.)


setTypeExpr

public void setTypeExpr(java.lang.String typeExpr)
Setter method for "type" tag attribute. (Mapping set in associated BeanInfo class.)


release

public void release()
Releases state of custom tag so this instance can be reused.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start tag.

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

evaluateExpressions

private void evaluateExpressions()
                          throws javax.servlet.jsp.JspException
Processes all attribute values which use the JSTL expression evaluation engine to determine their values.

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred


Copyright ? 2000-2005 - The Apache Software Foundation