struts标签复选框的使用

发表于:2007-06-22来源:作者:点击数: 标签:

   

struts标签<html:checkbox property="addItem">xxxx</html:checkbox>相当于Html标签<imput type="checkbox" name="addItem" value="on">xxxx</input>
应用实例:
<logic:iterate id="subject" name="subjectList">
  <html:multibox property="subjects" >
   <bean:write name="subject" property= "id"/>
  </html:multibox>
     <bean:write name="subject" property= "name"/>
</logic:iterate>
作用:
把subjectList中subject的Id保存在subjects数组中(String型)

原文转自:http://www.ltesting.net