I am trying to use indexed properties in a form, as described in James Turner's Article "Succeeding With Struts: Indexed Properties and Beans as Properties" at http://www.developer.com/java/ejb/article.php/2233591

The example shows you can use c:forEach with <html:text indexed="true"/>, like this:

<c:forEach var="lines" items="${purchaseOrderBeanForm.map.lines}" >
<TR><TD><html:text indexed="true" name="lines" property="partNumber"/></TD>
<TD><html:text indexed="true" name="lines" property="quantity"/></TD>
<TD><html:text indexed="true" name="lines" property="price"/></TD></TR>
</c:forEach>


But when I try to do that, I get this error:

indexed="true" is only valid within an enclosing iterate tag

Is my code wrong or is the example wrong?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to