(作者:饶家俊,撰写时间:2020年12月3号)
首先我们要设置一下数据表格的表头,下面就是表头。每个表头对应的每一竖的数据,
<th scope="col">编号</th>
<th scope="col">编号</th>
<th scope="col">部门</th>
<th scope="col">回填</th>
表头设置完我们先去查询一下数据表格哪里的数据。通过button标签点击在通过form标签先进行跳转。
String pageNum=request.getParameter(“countPage3”);
int pageSize=4;
if("".equals(pageNum)||pageNum==null) {
pageNum="1";
}
Doctorpage ps =new Doctorpage();
request.getRequestDispatcher("/Loginpagejump/Outpatientregistration/Registeredinterest.jsp").forward(request, response);
进入这里在进行一个简单的判断他一定是大于1的。在实例化之后,在通过这句代码
PageBean3 pageBean3=ps.findUserByPage(Integer.parseInt(pageNum), pageSize);
request.setAttribute("