关于与

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 studyday 的 blog


此种状态复选框全为不选:

<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中的属性。

 

本文关键:关于与
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top