list.jsp
上传用户:zaktkj
上传日期:2022-08-08
资源大小:5770k
文件大小:1k
源码类别:

JavaScript

开发平台:

JavaScript

  1. <%@ page contentType="application/json;charset=utf-8" import="com.family168.student.*" %><%
  2.     request.setCharacterEncoding("utf-8");
  3.     response.setCharacterEncoding("utf-8");
  4.     int start = 0;
  5.     try {
  6.         start = Integer.parseInt(request.getParameter("start"));
  7.     } catch(Exception ex) {
  8.         System.err.println(ex);
  9.     }
  10.     int limit = 15;
  11.     try {
  12.         limit = Integer.parseInt(request.getParameter("limit"));
  13.     } catch(Exception ex) {
  14.         System.err.println(ex);
  15.     }
  16.     String sort = request.getParameter("sort");
  17.     String dir = request.getParameter("dir");
  18.     StudentDao dao = StudentDao.getInstance();
  19.     Page pager = dao.pagedQuery(start, limit, sort, dir);
  20.     out.print(pager.toString());
  21. %>