首页 > 学院 > 开发设计 > 正文

struts标签复选框的使用

2019-11-18 11:24:57
字体:
来源:转载
供稿:网友

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型)



发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表