* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
List<Entity> orders = (List<Entity>)
request.getSession().getAttribute("orders");
Invoice invoice = new Invoice();
invoice.put("orders", orders);
invoice.put("user", SessionUtils.getUser(request));
invoice.put("shipType", request.getAttribute("shipType"));
invoice.put("payType", request.getAttribute("payType"));
invoice.put("note", request.getAttribute("note"));
invoice.put("address_id", request.getAttribute("address_id"));
invoice.put("time", new Date());
Connection conn = null;
try {
conn = getConnection();
invoiceDAO = new InvoiceDAO();