//页面分页信息返回,并赋值
JSONObject job = new JSONObject();//返回值
job.put("sEcho",request.getParameter("sEcho"));
PageBounds pageBounds = new PageBounds();
if(request.getParameter("iDisplayLength") != null && request.getParameter("iDisplayStart") != null){
int iDisplayStart = Integer.valueOf(request.getParameter("iDisplayStart"));
int iDisplayLength = Integer.valueOf(request.getParameter("iDisplayLength"));
int pagetow = 1;
if(iDisplayStart > 0){
pagetow += (iDisplayStart / iDisplayLength);
}
pageBounds.setPage(Integer.valueOf(pagetow));//当前页
pageBounds.setLimit(iDisplayLength);//页容
}
// float totalRow = (float)page.getTotalSize();//总数量
float totalRow = (float)count;//总数量
int totalPage = (int) (Math.ceil(totalRow/10));