/** @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */
  protected void doPost(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    HttpSession session = request.getSession();
    model.Userprofile user = (Userprofile) session.getAttribute("User");

    int credit = Integer.parseInt(request.getParameter("credit"));
    int ccv = Integer.parseInt(request.getParameter("ccv"));
    String bill = request.getParameter("bill");
    String diffAdd = request.getParameter("diffAdd");
    String remember = request.getParameter("remember");
    String ship = request.getParameter("ship");
    model.CreditInfo creditCard = new model.CreditInfo();
    creditCard.setUserId(user.getUserId());
    creditCard.setCard(credit);
    creditCard.setSecure(ccv);
    creditCard.setBillAdd(bill);
    creditCard.setShipAdd(ship);
    System.out.println(remember);
    if (remember != null) {
      storeCreditInfo(creditCard);
    }

    getServletContext().getRequestDispatcher("/index.jsp").forward(request, response);
  }