<html:select> inside <logic:iterate>
- by TPT Gin
I have an itemList and for each item, a dropdown list of ratings is displayed. After user rates each item in itemList, i want to store those rates in an array. How can I do it? selectedRate below is of Integer type, and the code failed to solve the problem.
<logic:iterate id="item" name="itemList">
<tr>
<td>
<html:select name="aForm" property="selectedRate">
<html:optionsCollection name="allRates" label="description" value="value" />
</html:select>
</td>
</tr>
</logic:iterate>