You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Nguyen Tuan Khang <kh...@sat.com.vn> on 2003/05/12 10:33:03 UTC

logic:iterate and html:checkbox

Hi all

could you help me the following question:

I have a UserForm that uses Struts Form with following paramters

int id;
String username;
String password;
//setter and getter methods

how to set the value for my checkbox in the following contents for my
listing jsp file?

<logic:iterate name="UserList" id="User">
<tr class="list1-odd">
    <td align="center" width="1" valign="top" nowrap="nowrap">
        <html:checkbox name="User" property="id"
value="??????????how-to-do-here???????????????"/>
    </td>

<td valign="top" nowrap="nowrap"><bean:write property="username"
name="User"/></td>

<td valign="top" nowrap="nowrap"><bean:write property="fullname"
name="User"/></td>

</tr>
</logic:iterate>

thank you
regards
Khang



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org