Thanks for the reply. I tried using the indexed properties and i am not getting it to work. This is what i did:
1.Added into the
struts config file form-property:
<form-bean name="enterDataForm" type = "mypkg.EnterDataForm">
<form-property name="sampleData" type="mypkg.dto.DataBean[]"/></form-bean>
2.Added in the
jsp files the 'indexed=true' property 3.Added in the EnterDataForm class, new setter & getter: - sampleData is an Array of DataBean and has its regular setter and getter function too.
public DataBean getSampleData(int index)
{
return sampleData[index];
}
public void setSampleData(int index, DataBean b)
{
sampleData[index]=b;
} Is there something else i need to do?
[ April 24, 2008: Message edited by: suni george ]
[ April 24, 2008: Message edited by: suni george ]