问题描述
- select下拉框没有数据
-
后台代码
public String toList() {BuildingQuery q = (BuildingQuery) getContext().getSession().get(BuildingQuery.class.getName());
if(q != null){
putToContext("buildingList", buildingService.getByCondition(q));
}else{
putToContext("buildingList", buildingService.getAll());
}
return "toList";
}
jsp代码${b.name}
/c:forEach我struts的select标签试过,spring的select 标签页试过,都没数据出来,应该是集合的问题吧.我刚学的Java,技术不行,望各位老师帮助!
时间: 2024-09-26 12:34:16