做个页面用到了STRUTS2的 SELECT标签,目的是查处所有的GFXS生成下拉菜单,总是报错上网上看了好多帖子发现怎么说的都有但好像都不好用啊!
页面:
/s:select
ACTION:
List list ;
public List getList() throws AuctionException {
list=mgr.findGFXS();
return list;
}
试了很多总写法都没行 错误提示有2种:
tag 'select', field 'list', name 'zb.gf': The requested list key 'name' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
和
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
请问该怎么做才能显示正确呢