struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nguyen Tuan Khang" <khan...@sat.com.vn>
Subject logic:iterate and html:checkbox
Date Mon, 12 May 2003 08:33:03 GMT
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


Mime
View raw message