Hello,
I am developing a jsp with struts. This is the snap of the code:
<logic:iterate id="prod" collection="productList" >
<tr align="center">
<td><html:text property="prodDesc" size="50" indexed="true"/></td>
<td>
<html:select property="prodUnit" indexed="true">
<option selected>-</option>
<OPTION VALUE='NMB'>NMB
<OPTION VALUE='TEN'>TEN
<OPTION VALUE='TPR'>TPR
<OPTION VALUE='GWH'>GWH
</html:select>
</td>
<td><html:text property="prodQty" size="20" indexed="true"/></td>
<td><html:text property="prodVal" size="20" indexed="true"/></td>
</tr>
</logic:iterate>
"productList" is defined as an array of Product[], "prod" is defined as a single Product object in the form. But when i run the page, it gives me this errors:
"javax.servlet.jsp.JspException: Cannot create iterator for this collection".
I also tried to make "productList" an ArrayList type, but it game me this same error.
We are using Websphere 4.0 with Struts 1.1.
Anyone can help?
Thanks a lot.
All the best,
warren