The enumerate tag 

Overview 

This tag is used to enumerate through items, in an array or a Vector, returned by a bean property. 

Tag Usage 

This tag is used as follows: 

<jee:enumerate name=”beanInstanceName”
property=”propertyName”
itemName=”name to use for item”
[type=”class of item”]>Elements processed for each iteration
</jee:enumerate>

name – This is the name of the bean to use.

property – This is the name of the property to call.

ItemName – This is the scripting variable name that an item will be assigned to during each loop.

type – This optional field allows the class of the item to be specified. This is only needed if the item will be accessed with a sciptlet inside the enumerate tag. This must be a fully qualified class name.

Example 

The following code shows an example of using this tag: 

<%@ taglib uri="jeenius" prefix="jee" %>
<jsp:useBean id=”myBean” class=”example.MyBean”/>   <html>
 <head>
   <title>excludeIf example</title>
 <head>
 <body>
  <jee:enumerate name=”myBean” property=”items” itemName=”item”>    Item is: <jsp:getProperty name=”item” property=”name”/>   </jee:enumerate>
 </body>
</html>