1.html代码:

<html:select name="form" property="form中vo的属性" >
      <html:optionsCollection name="form" property="form中的list(存放下拉框中的数据)"   

        label="label" value="value"/>
</html:select>

 

2.java代码:

在dao的实现中

import org.apache.struts.util.LabelValueBean;

 

List resultList = new ArrayList();

resultList.add((new LabelValueBean("", "")));//第一个"":key(下拉框中的显示);第二个"":value(你要存到数据库中的)