Oracle Fusion Middleware
Oracle WebLogic Server 10.3.1 API Reference
11g Release 1 (10.3.1)

Part Number E13941-02

weblogicx.jsp.tags
Class RepeatTag

java.lang.Object
  extended by BodyTagSupport
      extended by weblogicx.jsp.tags.RepeatTag

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.


Constructor Summary
RepeatTag()
           
 
Method Summary
 int doAfterBody()
           
 void doInitBody()
           
 int doStartTag()
           
 int getCount()
           
 String getId()
           
 Object getSet()
           
 String getType()
           
 void release()
           
 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.
 void setId(String id)
          This is the id of the scripting variable that will contain the current object that you are iterating over.
 void setSet(Object set)
          This is the set of objects.
 void setType(String type)
          This is the type of object that results from iterating over the set you passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeatTag

public RepeatTag()
Method Detail

release

public void release()

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.


getId

public String getId()

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
Throws:
JspException

doInitBody

public void doInitBody()
                throws JspException
Throws:
JspException

doAfterBody

public int doAfterBody()
                throws JspException
Throws:
JspException

Documentation is available at
http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm
Copyright 1996, 2009, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server 10.3.1 API Reference
11g Release 1 (10.3.1)

Part Number E13941-02