hope you're using struts 1.1-- you're going to need the "indexed" attribute. Here's the basic idea:
<logic:iterate id="creditCard" name="myForm" property="creditCards"> Type: <html:text name="creditCard" property="type" indexed="true" /> Name: <html:text name="creditCard" property="name" indexed="true" /> ... </logic:iterate> and <form-bean name="myForm" type="o.a.s.a.DynaActionForm"> <form-property name="creditCards" type="com.ra.ic.model.CreditCard[]" /> </form-bean> Note: this will be this simple only if all your creditCard attributes are Strings, otherwise you'll need to resort to PropertyUtils.copyProperties() or some homegrown conversion method, I believe. -JT -----Original Message----- From: Andy Kriger [mailto:akriger@;greaterthanone.com] Sent: Friday, October 25, 2002 7:15 AM To: Struts Users Mailing List Subject: Question - DynaActionForm and indexed property I am trying to setup a DynaActionForm to use indexed and named properties. But I'm getting an error and, not knowing BeanUtils very well, I'm wondering if someone can guide me in what I need to do to make this work. In my form... <html:text property='creditCard[0].type' /> <html:text property='creditCard[0].name' /> <html:text property='creditCard[0].number' /> <html:text property='creditCard[0].expDate' /> In my struts-config.xml... <form-property name='creditCard[0].type' type='com.ra.ic.model.CreditCard' /> <form-property name='creditCard[0].name' type='com.ra.ic.model.CreditCard' /> <form-property name='creditCard[0].number' type='com.ra.ic.model.CreditCard' /> <form-property name='creditCard[0].expDate' type='com.ra.ic.model.CreditCard' /> CreditCard has get/set methods for type, name, number, expDate. The error I'm getting is... javax.servlet.jsp.JspException: No getter method for property creditCard[0].type of bean org.apache.struts.taglib.html.BEAN at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:742) -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>