<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>
此種情況復選框全為選中<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>
<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中的屬性。