此种状态复选框全为不选:
<table border="1" width="100%" >
<tr>
<td width = "200"></td>
<td width="100%"><div align="center">
<logic:iterate id="loop" name="arrays">
<div align="center">
<html:multibox property="arrays">
<bean:write name="loop" property="mat_id"/>
</html:multibox>
<bean:write name="loop" property="mat_name"/>
</div>
</logic:iterate>
</div>
</td>
</tr>
</table>
此种情况复选框全为选中
<table border="1" width="100%" >
<tr>
<td width = "200"></td>
<td width="100%"><div align="center">
<logic:iterate id="loop" name="arrays">
<div align="center">
<html:multibox name="loop" property="mat_id">
<bean:write name="loop" property="mat_id"/>
</html:multibox>
<bean:write name="loop" property="mat_name"/>
</div>
</logic:iterate>
</div>
</td>
</tr>
</table>
其中,<html:multibox >的property属性可取form中的属性。
posted on 2008-07-28 18:54
Hank1026 阅读(923)
评论(0) 编辑 收藏 所属分类:
每日积累