上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页
摘要: 高级搜索条件查询 第一次查询时pageBean实体由request域带回到list页面 pageBean实体中存放的url用来为分页访问 保存之前查询的条件高级搜索中的表单提交 request.queryString 可以获得。BookDao: 1 //按bid查询 2 public... 阅读全文
posted @ 2015-09-05 17:26 尾巴草 阅读(461) 评论(0) 推荐(0) 编辑
摘要: pager.jsp 1 2 3 17 18 19 20 21 22 23 上一页24 上一页25 26 27 28 29 begin=1, end=最大页32 2. 通过公式设置begin和end,begin=当前页-1,end=当前... 阅读全文
posted @ 2015-09-05 15:27 尾巴草 阅读(406) 评论(0) 推荐(0) 编辑
摘要: BookDao 1 //按分类查询 2 public PageBean findByCategory(String cid,int pc) throws SQLException 3 { 4 List exprList=new ArrayLis... 阅读全文
posted @ 2015-09-03 20:01 尾巴草 阅读(578) 评论(2) 推荐(0) 编辑
摘要: Given a collection of intervals, merge all overlapping intervals. For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10],[15,18]. 1 /** 2 *... 阅读全文
posted @ 2015-09-02 14:37 尾巴草 阅读(150) 评论(0) 推荐(0) 编辑
摘要: CategoryDao 1 //把一个map中的数据映射到category中 2 private Category toCategory(Map map) 3 { 4 5 Category category=CommonUtils.toBean(ma... 阅读全文
posted @ 2015-08-31 17:26 尾巴草 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Note: Do not modify the linked list. Follow up:Can you ... 阅读全文
posted @ 2015-08-31 12:02 尾巴草 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 1 /** 2 * Definition for singly-linked ... 阅读全文
posted @ 2015-08-31 11:56 尾巴草 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 修改密码UserServlet 1 //修改密码 2 public String updatePassword(HttpServletRequest req, HttpServletResponse resp) 3 { 4 /* 5 * 1、封装表... 阅读全文
posted @ 2015-08-30 15:21 尾巴草 阅读(731) 评论(0) 推荐(0) 编辑
摘要: UserServlet 1 // 登录功能 2 public String login(HttpServletRequest req, HttpServletResponse resp) throws UnsupportedEncodingException { 3 /* 4... 阅读全文
posted @ 2015-08-29 21:48 尾巴草 阅读(581) 评论(0) 推荐(0) 编辑
摘要: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.For example,Given nums = [0, 1, 3... 阅读全文
posted @ 2015-08-28 21:34 尾巴草 阅读(107) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页