Example #1
0
 public String findByCategory(HttpServletRequest req, HttpServletResponse resp)
     throws ServletException, IOException, SQLException {
   int pc = getPc(req);
   String url = getUrl(req);
   String cid = req.getParameter("cid");
   PageBean<Book> pb = bookService.findByCategory(cid, pc);
   pb.setUrl(url);
   req.setAttribute("pb", pb);
   return "f:/jsps/book/list.jsp";
 }