throws ServletException, IOException {
try {
Connection conn = getConnection();
ProductDAO productDAO = new ProductDAO(conn);
int productId = Integer.parseInt(req.getParameter("product"));
Entity product = productDAO.findById(productId);
productDAO.fetchImage(product);
int quantity = Integer.parseInt(req.getParameter("quantity"));
conn.close();
List<Entity> orders = (List<Entity>) req.getSession().getAttribute("orders");