Struts中的

<s:select value="%{branch.name}" name="branchUuid" listValue="branch.name" listKey="branch.id" list="list" headerKey="" headerValue="--请选择--"></s:select>

List集合中放入的为一个对象!

对象中有成员对象branch!

branch对象中有name和id属性!

遍历ActionContext中的list集合   listValue为每个的value   listKey为每个的key

猜你喜欢

转载自blog.csdn.net/dongyan3595/article/details/69292462