struts中使用單選按鈕有三種方式
<html:select property=
<html:option value=
<html:option value=
<html:option value=
</html:select>
private List cityList=new ArrayList();
public List getCityList() {
return cityList;
}
cityList
cityList
cityList
<html:select property=
<html:optionsCollection property=
</html:select>
<%List cityList=new ArrayList();
cityList
cityList
cityList
request
%>
<html:select property=
<html:options collection=
</html:select>
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28298.html