Please post questions about using Struts to the Struts Users list only.
The Struts Dev list is for discussing the development and enhancement of
Struts itself.
http://struts.apache.org/mail.html
L.
Radha Krishna wrote:
Hi,
i am working on indexed,nested properties. i have following entries in my ActionForm
private ArrayList countryNames = new ArrayList();
public void setCountryNames(int index,LabelValueBean val) {
this.countryNames.add(index,val);
}
public LabelValueBean getCountryNames(int index){
while(index>=this.countryNames.size())
this.countryNames.add(new LabelValueBean("label","value"));
return (LabelValueBean) this.countryNames.get(index);
}
i am writing code in JSP like this,
<logic:iterate id="countryNames" name="myBean" indexId="i">
<html:text name="countryNames" property="label" indexed="true"/>
<html:text name="countryNames" property="value" indexed="true"/>
</logic:iterate>
after execution i am getting the source like
<input type="text" name="countryNames[0].label" />
<input type="text" name="countryNames[0].value" />
<input type="text" name="countryNames[1].label" />
<input type="text" name="countryNames[1].value" />
......
but when i click on my submit button, setter method never get called, it calls getter method properly for all text boxes
Can anyone please tell me what could be the problem and how solve this.
Thanks.
---------------------------------
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]