Oh, oh.: And if you use html:text and the same iterator interface: The multi row updates work and multi row struts validation works, just as if it were a single row!
Vic Cekvenich wrote: > The iterate tag is tied to the form bean (as you can see). When the > iterate tag ends via a /iterate, it calls next() in the form Bean, > which is implemented (in the base form bean that evey bean extends ) > and if it hasNext it goes to the top of the loop. > The "trick" is to make your form Beans implement iterator. > > Ted showed me this trick (and also did some coding and sugestions for > webPIM). Look at the base Form Bean and note that it implements iterator. > > Vic > > > vivek shrivastava wrote: > >> Hi, >> >> i need help to understand following code. i understand that >> "histLstForm" is the name of form bean. but i don't understand how >> does <bean:write> know that there are multiple vales of "question" >> property of "histLstForm" bean? >> >> How does it perform a loop on all the values of "question" property >> of "histLstForm" bean? because it it calls getter funtion on >> "question" property it will give one value, so how does it know there >> are multiple values? >> >> Following code is from vic's DB sample. >> >> <logic:iterate id="i" name="histLstForm"> >> <tr><td> >> <bean:write name="histLstForm" property="question"/></td><td> >> <bean:write name="histLstForm" property="ans"/></td><td> >> <bean:write name="histLstForm" property="dateCont"/></td><td> >> <bean:write name="histLstForm" property="typ"/></td><td> >> <bean:write name="histLstForm" property="cost"/></td> >> </tr> >> </logic:iterate> >> </table> >> >> >> >> Please do help me. >> >> thanks >> >> >> _________________________________________________________________ >> Chat with friends online, try MSN Messenger: http://messenger.msn.com >> >> >> -- >> 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]>