先getCount()查询信息的总条数,每页显示多少条记录 ,有多少页,如每页10行 float count=Float.parseFloat(request.getAttribute("count").toString()); int pageNo=(Integer)request.getAttribute("pageNo"); int totalPage=(int)Math.ceil(count/10); 还有个getinfo()查询符合条件的记录,在Action中写list()方法,到前台循环输出下
float count=Float.parseFloat(request.getAttribute("count").toString());
int pageNo=(Integer)request.getAttribute("pageNo");
int totalPage=(int)Math.ceil(count/10);
还有个getinfo()查询符合条件的记录,在Action中写list()方法,到前台循环输出下