/** * 加载订单 * * @param req * @param resp * @return * @throws ServletException * @throws IOException */ public String load(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String oid = req.getParameter("oid"); Order order = orderService.load(oid); req.setAttribute("order", order); String btn = req.getParameter("btn"); // btn说明了用户点击哪个超链接来访问本方法的 req.setAttribute("btn", btn); return "/jsps/order/desc.jsp"; }
/** * 支付准备 * * @param req * @param resp * @return * @throws ServletException * @throws IOException */ public String paymentPre(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.setAttribute("order", orderService.load(req.getParameter("oid"))); return "f:/jsps/order/pay.jsp"; }