Hi I have a form bean which extexnds Action form . FooForm This FooForm has an array of another java bean say FooJavaBean
Public class FooForm extends ActionForm { Public FooJavaBean[] fooBean = ; Public FooJavaBean getFooBean(int index) { return fooBean[index]; } Public FooJavaBean[] getFooBean() { return fooBean; } Public void setFooBean(int index, FooJavaBean fb) { this.fooBean[index] = fb; } Public void setFooBean(FooJavaBean[] fb) { this.fooBean = fb; } } public class FooJavaBean { public String attID; public String getAttID() { return attID; } public void setAttID(String id) { this.attID = id; } } I have to iterate over the FooJavaBean array and display the attID for each FooJavaBean in the array. 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 Can someone please help me out what I am doing wrong. I started learning struts only a week ego. So I might be doing some silly mistake. I will be very thankful if one of you can figure what I am doing wrong. Thank you in advance Sandhya --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]