The <es:counter> tag is used to create a for loop.
<tagName attribute="value" />
type
Optional (String) - The type of the counter. Possible values are Integer or Long. Default is Integer.
id
Required (String) - A unique name for the variable.
minCount
Required (int) - The start position for the loop.
maxCount
Required (int) - The end position for the loop.
This example runs a for loop beginning at zero and ending at 10, printing the variable value each time.
<es:counter id="iterator" minCount="0" maxCount="10"> <% System.out.println(iterator);%> </es:counter>