jsp代码:
<p align="center">
<a>信息总数:</a>
<a>${counts}</a>
</p> action代码:
public String getList()
{
int counts = 0;
counts =  this.baseService.getCounts();
this.getRequest().setAttribute("counts", counts);
return "list";
}sql语句:
/**
 * 获取页面总条数
 */
public Integer getCounts(){
String hql = "select count(*) from User ";
Query query = this.getSession().createQuery(hql);
return  Integer.parseInt(query.uniqueResult().toString());
}为什么我就是不能传递获取 我所查询的  总数counts啊  小弟在线等