javax.servlet.ServletException: org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: , near line 1, column 71 [select new com.model.TYudingVO(a.yudingShumu,b.shifazhan,b.daodazhan ),sum(a.yudingShumu)from com.model.TCheci as b,com.model.TYuding as a where a.checiId= b.id and a.yudingZhuantai !=2 group by a.checiId]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected token: , near line 1, column 71 [select new com.model.TYudingVO(a.yudingShumu,b.shifazhan,b.daodazhan ),sum(a.yudingShumu)from com.model.TCheci as b,com.model.TYuding as a where a.checiId= b.id and a.yudingZhuantai !=2 group by a.checiId]
String sql=" from TYuding where yudingZhuantai !=2 group by checiId";
List<TCheci> liuliangList=yudingDAO.getHibernateTemplate().find(sql);
Map request=(Map)ServletActionContext.getContext().get("request");
request.put("liuliangList", liuliangList);
return ActionSupport.SUCCESS;
这个语句为什么在jsp页面没有值
然后看liuliangList 执行的结果是什么
liuliangList 里面是否有放进去值然后在纠结页面没有拿到值是怎么回事