1、select控件
option一定要用<html:option>**</html:option> 若只用<option>则只能传值给formbean,但不能从formbean自 动赋值给select
2、radio控件
<html:radio property = "isHxbStuff" value="1" onclick="initValue()">是</html:radio>
<html:radio property = "isHxbStuff" value="0" onclick="initValue()">否</html:radio>
取值方法:
function initValue(){
var value="";
var rPort = document.getElementsByName("isHxbStuff"); //类似于数组
for(i=0;i<rPort.length;i++){
if(rPort[i].checked)
value=rPort[i].value; //得到选择的radio的值
}
}