当前位置: 代码迷 >> HTML/CSS >> html:multibox打开页面替默认选中状态
  详细解决方案

html:multibox打开页面替默认选中状态

热度:147   发布时间:2012-09-11 10:49:03.0
html:multibox打开页面为默认选中状态

struts1.2

首先我想点击一个按钮,跳转页面,页面上有几个复选框,<html:multibox>

?

复选框的value如下

<html:multibox property="box" value="aa"/> AA<br/>  
<html:multibox property="box" value="bb"/> BB<br/>  
<html:multibox property="box" value="cc"/> CC<br/>
?后台给前台传的值为
Html代码
CheckboxForm checkboxForm = (CheckboxForm) form;   
checkboxForm.setBox(new String[]{"aa", "cc"});  
?
  相关解决方案