您的位置:首页 > 编程语言

王垠的「40 行代码」

2014-09-26 09:44 686 查看
webwork action定义
ListGoods 为Map型
public String justFindGoodsItem() throws Exception{
List item1=goodsItemDao.justFindGoodsItem();
itemGoods.put("goodsItem",item1);
return SUCCESS;
}
从hibernate取出数据
public List justFindGoodsItem(){
List goodsitem=hibernateTemplate.find("from Goodsitem");
if(!goodsitem.isEmpty()){
return goodsitem;
}
return null;
}
在页面上先调用此action
然后<ww:select name="department" list="itemGoods"/>
出现错误如下:
org.apache.catalina.core.ApplicationContext log
信息: tag 'select', field 'list', name 'department': The requested list key 'itemGoods' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name}
恳请大家指点
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: