struts2分页的对象设计

  1)思路将分页相关的数据封装到
      一个类(分页类):Pager
  2)Pager类的属性:
       int pageNo;  //页码
       int pageSize; //每页条数
       int recordCount; //记录数
       int pageCount;   //页数
       boolean first;//是否为第一页
       boolean last;//是否为最后一页
       List  pageResult; //分页数据

猜你喜欢

转载自jacular.iteye.com/blog/1592539