|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport org.apache.struts.taglib.logic.IterateTag org.apache.strutsel.taglib.logic.ELIterateTag
public class ELIterateTag
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.
Field Summary |
---|
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. |
String |
getCollectionExpr()
Getter method for "collection" tag attribute. |
String |
getIdExpr()
Getter method for "id" tag attribute. |
String |
getIndexIdExpr()
Getter method for "indexId" tag attribute. |
String |
getLengthExpr()
Getter method for "length" tag attribute. |
String |
getNameExpr()
Getter method for "name" tag attribute. |
String |
getOffsetExpr()
Getter method for "offset" tag attribute. |
String |
getPropertyExpr()
Getter method for "property" tag attribute. |
String |
getScopeExpr()
Getter method for "scope" tag attribute. |
String |
getTypeExpr()
Getter method for "type" tag attribute. |
void |
release()
Releases state of custom tag so this instance can be reused. |
void |
setCollectionExpr(String collectionExpr)
Setter method for "collection" tag attribute. |
void |
setIdExpr(String idExpr)
Setter method for "id" tag attribute. |
void |
setIndexIdExpr(String indexIdExpr)
Setter method for "indexId" tag attribute. |
void |
setLengthExpr(String lengthExpr)
Setter method for "length" tag attribute. |
void |
setNameExpr(String nameExpr)
Setter method for "name" tag attribute. |
void |
setOffsetExpr(String offsetExpr)
Setter method for "offset" tag attribute. |
void |
setPropertyExpr(String propertyExpr)
Setter method for "property" tag attribute. |
void |
setScopeExpr(String scopeExpr)
Setter method for "scope" tag attribute. |
void |
setTypeExpr(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 |
Constructor Detail |
---|
public ELIterateTag()
Method Detail |
---|
public String getCollectionExpr()
public String getIdExpr()
public String getIndexIdExpr()
public String getLengthExpr()
public String getNameExpr()
public String getOffsetExpr()
public String getPropertyExpr()
public String getScopeExpr()
public String getTypeExpr()
public void setCollectionExpr(String collectionExpr)
public void setIdExpr(String idExpr)
public void setIndexIdExpr(String indexIdExpr)
public void setLengthExpr(String lengthExpr)
public void setNameExpr(String nameExpr)
public void setOffsetExpr(String offsetExpr)
public void setPropertyExpr(String propertyExpr)
public void setScopeExpr(String scopeExpr)
public void setTypeExpr(String typeExpr)
public void release()
release
in interface Tag
release
in class IterateTag
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class IterateTag
JspException
- if a JSP exception has occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |