Hi, It can as well be done in struts using this
<logic:iterate id="element" name="FooForm" property="fooBean" indexId="index"> <li><em> <bean:write name="element" property="attID"/> </em> [<bean:write name="index"/>]</li> </logic:iterate> KP -----Original Message----- From: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 5:28 AM To: Struts Users Mailing List Subject: RE: struts logic-iterate and accessing nested index properties Thank you Tim. I used JSTL , that solved my problem -----Original Message----- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 1:58 PM To: 'Struts Users Mailing List' Subject: RE: struts logic-iterate and accessing nested index properties > In my JSP I have coded the following > <logic:iterate id="element" name="FooForm" property="fooBean" > indexId="index"> <li><em><bean:write name="element" > property='<%= "fooBean[" + index + "].attID" > %>'/></em> [<bean:write name="index"/>]</li> </logic:iterate> > > When I run the JSP I get the following error > Error 500: No getter method for property fooBean[0].attID of > bean element Use JSTL: <c:forEach items="${FooForm.FooBean}" var="fooBean"> <c:out value="${fooBean.attID}"/> </c:forEach> -- Tim Slattery [EMAIL PROTECTED] --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]