搜索与分页的区别
1.搜索
select * from tb_user where username like “%?%”
2.分页
pojo pageinfo 5
currentpage
size
list
totalpage
totalcount
dao
limit 查询要展现的数据
count 计算总条数
service (new pageinfo)
servlet 实现跳转 页面展现
request.getRequestDispatcher("/findByPage").forward(request,response);
转发 一次请求
response.sendRedirect("/findByPage");
重定向 二次请求