后台代码
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,技术不行,望各位老师帮助!