文件名称:Java无条件分页查询
文件大小:10.94MB
文件格式:RAR
更新时间:2012-05-09 10:42:28
Java无条件分页查询
分页功能部分代码: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { UserForm uf = (UserForm)form; PageBean pb = new PageBean(); UserInfoImpl user = new UserInfoImpl(); String page = request.getParameter("page"); pb.setAllRecord(user.countNum());//将总页数赋值 pb.count(page); pb.setCurrentList(user.query(pb.getFirst(),pb.getSize())); System.out.println(pb.getCurrentList()); request.setAttribute("pb",pb); return mapping.findForward("show"); }
【文件预览】:
无条件查询分页效果
----UserInfo.mdf(3MB)
----PageTest()
--------.project(1KB)
--------.mymetadata(297B)
--------WebRoot()
--------.myeclipse()
--------src()
--------.mystrutsdata(255B)
--------.classpath(3KB)
--------.myhibernatedata(509B)
----UserInfo_log.ldf(1024KB)