<html:select property="department">
<html:options collection="departmentSelect"
property="value" labelProperty="label" />
</html:select>departmentSelect 是一个list 里面是用来现实的字符串
把它存在session里就可以了
session.setAttribute("departmentSelect", 你的list);
<html:options collection="departmentSelect"
property="value" labelProperty="label" />
</html:select>departmentSelect 是一个list 里面是用来现实的字符串
把它存在session里就可以了
session.setAttribute("departmentSelect", 你的list);
<html:select property="department">
<html:options collection="departmentSelect"
property="value" labelProperty="label" />collection 对应的可以是map,也可以是个List
这句话有理 呵collection 对应的可以是map,也可以是个List
应该是
collection 对应的可以是Collection 也可以是Iterator
也可以是Map 也可以是Enumeration