You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rejin NS <re...@pitsolutions.com> on 2002/09/03 14:59:26 UTC

Re: html:text in logic:iterate ?

    Thanks for the responses.
    This works:
<logic:iterate id="trick" name="MyForm" property="list" type="my.path.Club">
 <TR>
  <TD>
   <html:text indexed="true" name="trick" property="data"/></p>
  </TD>
 </TR>
 </logic:iterate>
    note that you need a method: public Club getTrick(int index) in MyForm.
-rejin.

----- Original Message -----
From: "Tom Klaasen" <to...@pandora.be>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, August 29, 2002 1:08 AM
Subject: Re: html:text in logic:iterate ?


> To have the setters work in a logic:iterate, you should use the "nested"
> taglib (keyboardmonkey.com/struts if I'm not mistaken)
>
> tomK
>
>
> Rejin NS wrote:
>
> >Thanks for the sample code, Maris.
> >
> >I could make some headway, but still can't get the setters to work. Here
is
> >the snippet:
> >
> ><logic:iterate id="b" name="MyForm" property="list" type="my.path.Club">
> ><TR><TD>
> >   <html:text indexed="true" name="b" property="data"/></p>
> ></TD></TR>
> ></logic:iterate>
> >
> >'list' is a vector.
> >'Club' has a private String variable - 'data', with get/set methods.
> >The values are displayed correctly on the page.
> >The problem is that the new values typed in the textbox are not updated
in
> >'list'.
> >What did I miss?
> >-rejin.
> >
> >
> >--
> >To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> >For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
> >
> >
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>