That your data is presented correctly means that the form bean was set up correctly when it reached the JSP page. However, when the form is submitted, Struts will call your reset() method before populating the form bean from the request parameters. Your reset() method needs to be instantiating the beans, or your nested properties will not be populated.
-- Martin Cooper > -----Original Message----- > From: hemant [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 18, 2002 3:11 PM > To: Struts Users Mailing List > Subject: Re: Setter Methods not being called in > nested:iterate scenario > :+( > > > Adam > Thanks for responding.. > > The Actionform (rangesform) itself is my root and I have a collection > reference "collectionOfPairs" in "rangesform", replete with > getter/setter > methods. > > The collectionOfPairs is instantiated and populated. If not, > I would not be > seeing the page with the correct data. right? > > As I said earlier, the getters work, the setters do not work. All this > inspite of having the bean in the form. > > Thanks > hemant > > > ----- Original Message ----- > From: "Adam Hardy" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Thursday, July 18, 2002 4:39 PM > Subject: Re: Setter Methods not being called in > nested:iterate scenario :+( > > > > nested tags / indexed properties / nested beans gotcha. You have to > > instantiate the beans yourself in the form reset() if you want to > > capture the indexed properties. > > > > > > [this answer was automated, virtually] > > > > hemant wrote: > > > Comrades, > > > > > > I am trying to Iterate over a Collection of Collections > of ValueObjects > and after some real painful experimentation (With VA 3.5.3 + > Apache Tomcat + > Poolman ), I got the page to come up properly :). So far so > good. I went out > and celebrated for a few minutes... > > > > > > The getter methods seem to work fine. But the user data > is not being > captured on Submit :( > > > > > > Please throw some light on this... > > > > > > Here is the snippet from my JSP. > > > > > > <!--bean:define id="collectionOfPairs" name = "ldmservice" > property="ranges" type="java.util.Collection" scope="session"/--> > > > <nested:root name="rangesform"> > > > > > > <!--logic:iterate id="pairs" name="collectionOfPairs" > type="java.util.Collection"--> > > > <nested:iterate property="collectionOfRanges"> > > > > > > <nested:iterate id="vopair" property="this/" > type="com.xxx.operations.mplanning.mpi.util.ValueObjectPair"> > > > > > > > > > <nested:root name="vopair"> > > > > > > ................... > > > ................... > > > > > > > > > <tr> > > > <td width="10%">Description</td> > > > <td width="90%"><nested:write name="vopair" > property="twVo.description"/></td> > > > </tr> > > > > > > > > > > > > For some reason, the setter Method of > setDescription(String xyz) is not > being called. > > > > > > > > > Please help... > > > > > > > > > Many Thanks for Your Time > > > > > > Regards > > > hemant > > > > > > > > > > > > > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

