C:foreach Varstatus Properties
The item in the current iteration (in the collection)
Index of the current iteration starting at 0
Count the iteration count for the current iteration starting at 1
A flag that indicates whether the current iteration is the first iteration
The flag used to indicate whether the current round iteration is the last iteration
Begin Property Value
End Property Value
Step Property value
Write a little example of a recent use:
<c:foreachitems= "${command.modellist}" var= "model" varstatus= "ABC" >
<tr>
<td><c:outvalue= "${abc.count}"/></td>
<TD class= "Model" >
<form:checkbox path= "Select" Value= "${abc.index}"/>
<labelfor= "Model1" >${model.modelName}</label>
<p>${model.modelDesc}</p>
</td>
<td>
<form:select Path = "Modellist[${abc.index}].positionidx" onchange= "Selectposs" (this); " >
<optionvalue= "" > Please select </option>
<form:option value= "A" label= "position a"/>
<form:option value= "B" label= "position B"/>