<html:select> inside <logic:iterate>

Posted by TPT Gin on Stack Overflow See other posts from Stack Overflow or by TPT Gin
Published on 2011-11-26T15:11:17Z Indexed on 2011/11/26 17:52 UTC
Read the original article Hit count: 247

Filed under:
|
|

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>

© Stack Overflow or respective owner

Related posts about struts

Related posts about struts-1