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>

Reply via email to