weblogicx.jsp.tags
Class RepeatTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
weblogicx.jsp.tags.RepeatTag
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, JspTag, Tag
public class RepeatTag
- extends BodyTagSupport
The repeat tag is used to iterate over many different
types of sets including Enumerations, Iterators, Collections,
Arrays of Objects, Vectors, ResultSets, ResultSetMetaData,
and the keys of a Hashtable. You can also just loop a certain
number of times by using the count attribute.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepeatTag
public RepeatTag()
release
public void release()
- Specified by:
release
in interface Tag
- Overrides:
release
in class BodyTagSupport
setId
public void setId(String id)
- This is the id of the scripting variable that will contain
the current object that you are iterating over. In the
case where count is specified, it is the number of the iteration
starting at 1.
- Overrides:
setId
in class TagSupport
getId
public String getId()
- Overrides:
getId
in class TagSupport
setSet
public void setSet(Object set)
- This is the set of objects. You must use <%= ... %> notation
to pass in a variable that is the set. It will automatically iterate
over a string, tokenizing on ",".
getSet
public Object getSet()
setType
public void setType(String type)
- This is the type of object that results from iterating
over the set you passed in. It defaults to java.lang.Object.
This type must be fully qualified.
getType
public String getType()
setCount
public void setCount(int count)
- In the case that no set is specified and a count is given,
this is the number of times to include the enclosed JSP.
If a count and a set are specified then it will include
only the first "count" entries in the set.
getCount
public int getCount()
doStartTag
public int doStartTag()
throws JspException
- Specified by:
doStartTag
in interface Tag
- Overrides:
doStartTag
in class BodyTagSupport
- Throws:
JspException
doInitBody
public void doInitBody()
throws JspException
- Specified by:
doInitBody
in interface BodyTag
- Overrides:
doInitBody
in class BodyTagSupport
- Throws:
JspException
doAfterBody
public int doAfterBody()
throws JspException
- Specified by:
doAfterBody
in interface IterationTag
- Overrides:
doAfterBody
in class BodyTagSupport
- Throws:
JspException