public class ForEachTag extends TagSupport
forEach
tag does.Modifier and Type | Class and Description |
---|---|
static class |
ForEachTag.LoopStatus
Holds the status of the loop.
|
body, context, parent
Constructor and Description |
---|
ForEachTag() |
Modifier and Type | Method and Description |
---|---|
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(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(String var)
Sets the variable name to export for the item being iterated over
|
void |
setVarStatus(String var)
Sets the variable name to export the current status to.
|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
Tag
public void setItems(Expression items)
public void setVar(String var)
public void setIndexVar(String indexVar)
public void setBegin(int begin)
public void setEnd(int end)
public void setStep(int step)
public void setVarStatus(String var)
Copyright © 2014 Apache Software Foundation. All rights reserved.