BEA WebLogic Server 9.0 API Reference
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:
- BodyTag, IterationTag, JspTag, Serializable, 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
- Copyright © 2005 BEA Systems, Inc. All Rights Reserved.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepeatTag
public RepeatTag()
doAfterBody
public int doAfterBody()
throws JspException
- Throws:
JspException
doInitBody
public void doInitBody()
throws JspException
- Throws:
JspException
doStartTag
public int doStartTag()
throws JspException
- Throws:
JspException
getCount
public int getCount()
getId
public String getId()
getSet
public Object getSet()
getType
public String getType()
release
public void release()
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.
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.
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 ",".
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.