struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmicciche <>
Subject Nested Collections and Beans
Date Tue, 20 Jun 2006 18:29:34 GMT

<p>I have a collection of beans and within each of those beans is a
collection of another type of bean.  When I use the following code the
values display correctly.  However the problem is when the page submits the
set methods of the inner bean never gets called.  All of the data changed on
the outer bean is updated and the inner bean remains unchanged.  Is there a
trick to this?
How do I ensure the set methods are called.  Thanks in advance!

<P>&lt;nested:iterate property="members" id="members"
		<P>&lt;%System.out.println("stop"); %&gt;</P>
		<P>	&lt;td&gt;&lt;nested:checkbox property="status" name="members"
indexed="true" value="C"/&gt;&lt;/td&gt;</P>
		<P>	&lt;td class="fldNameL"&gt;</P>
		<P>		&lt;nested:text name="members" property="name" indexed="true"
		<P>		&lt;nested:hidden name="members" property="rowStatus"
		<P>	&lt;/td&gt;</P>
		<P>	&lt;td&gt;Coverage:&lt;/td&gt;&lt;td&gt;&lt;nested:text
property="coverage" indexed="true" /&gt;&lt;/td&gt;</P>
property="PCP" indexed="true"/&gt;&lt;/td&gt;</P>
		<P>	&lt;tr&gt;&lt;td&gt;Dependents&lt;/td&gt;&lt;/tr&gt;</P>
		<P>	&lt;nested:iterate property="dependents" id="dependents"
			<P>	&lt;td&gt;Name:&lt;/td&gt;</P>
			<P>	&lt;td&gt;&lt;nested:text property="name"
			<P>	&lt;td&gt;PCP&lt;/td&gt;</P>
			<P>	&lt;td&gt;&lt;nested:text property="PCP" indexed="true"
		<P>&lt;/nested:iterate&gt; </P>
		<P>	&lt;td
View this message in context:
Sent from the Struts - Dev forum at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message