|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.core.ForEachTag
public class ForEachTag
Iterates over a collection, iterator or an array of objects.
Uses the same syntax as the JSTL
forEach
tag does.
Nested Class Summary | |
---|---|
static class |
ForEachTag.LoopStatus
Holds the status of the loop. |
Field Summary |
---|
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, parent |
Constructor Summary | |
---|---|
ForEachTag()
|
Method Summary | |
---|---|
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
void |
setBegin(int begin)
Sets the starting index value |
void |
setEnd(int end)
Sets the ending index value |
void |
setIndexVar(java.lang.String indexVar)
Sets the variable name to export the current index counter to |
void |
setItems(Expression items)
Sets the expression used to iterate over. |
void |
setStep(int step)
Sets the index increment step |
void |
setVar(java.lang.String var)
Sets the variable name to export for the item being iterated over |
void |
setVarStatus(java.lang.String var)
Sets the variable name to export the current status to. |
Methods inherited from class org.apache.commons.jelly.TagSupport |
---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForEachTag()
Method Detail |
---|
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
Tag
MissingAttributeException
JellyTagException
public void setItems(Expression items)
public void setVar(java.lang.String var)
public void setIndexVar(java.lang.String indexVar)
public void setBegin(int begin)
public void setEnd(int end)
public void setStep(int step)
public void setVarStatus(java.lang.String var)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |