此種狀態(tài)復(fù)選框全為不選:
<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>
此種情況復(fù)選框全為選中
<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 閱讀(927)
評論(0) 編輯 收藏 所屬分類:
每日積累