jsp页面部分调用代码:
<html:select property="userfield" >
?????? <html:options collection="plist" property="pkey" labelProperty="pvalue" />????
?????? </html:select>
???? Action中传出来
List list = new ArrayList();
????? for(int i=0;i<5;i++){
?????? Map map = new HashMap();
?????? map.put("pvalue",valuea);
?????? map.put("pkey",keya);
?????? list.add(map);
????? }
???? request.setAttribute("plist",list);
userfield,是一般是数据库表中要从其他表读取的字段,并且是列表的,比如数据类型,字典等.