What happens if you remove the "indexed" attribute from all the <html:text> - does it work properly then (except for the "name" attribute) is the html page generated OK?
Niall ----- Original Message ----- From: "Paul Barry" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 05, 2004 9:49 PM Subject: indexed="true" is only valid within an enclosing iterate tag > 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] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]