서블릿 private void addCart(HttpServletRequest request, HttpServletResponse response) throws Exception{ int no = Integer.parseInt(request.getParameter("no")); int amount = Integer.parseInt(request.getParameter("amount")); HttpSession session = request.getSession(); // 장바구니 확인 HashMap cart = (HashMap)session.getAttribute("cart"); // 없다면 if(cart == null){ // 장바구니 생성 cart = new HashMap(); session.setA..