protected void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
		HttpSession session = req.getSession(true);
		
		int uid = (int)((User)session.getAttribute("currentSessionUser")).getId();
		List<Order> cart;
		try {
			cart = OrderDAO.list(uid);
		
			//HashMap<Product,Integer> map = (HashMap<Product,Integer>)session.getAttribute("cart");
			if (cart.size() != 0) {
				/*try {
					for (Map.Entry<Product, Integer> entry : map.entrySet()) {
						map.put(ProductDAO.find("id", (int)(entry.getKey().getId())), map.remove(entry.getKey()));
						
					}
				} catch (SQLException e) {}*/
				//session.setAttribute("cart", map);
				req.setAttribute("cart", cart);
				//req.setAttribute("cart", OrderDAO.insert(, pid, quantity, price))
			}
		} catch (SQLException e1) {
			e1.printStackTrace();
			req.getRequestDispatcher("productOrderError.jsp").forward(req, res);
			return;
		}
			if (req.getParameter("product") != null ) {
			//int sku = Integer.parseInt(req.getParameter("product"));
				String sku = req.getParameter("product");
			try {
				// Find's the product that the customer tries to buy
				Product p = ProductDAO.find("sku", sku);
				req.setAttribute("orderProd", p);
				req.getRequestDispatcher("productOrder.jsp").forward(req, res);
				return;
			} catch (SQLException e) {
				// If an error occurred, redirect
				e.printStackTrace();
				req.getRequestDispatcher("productOrderError.jsp").forward(req, res);
			}
		} else {
			// If someone tries to access this page without a product parameter, then redirect to products page
			res.sendRedirect("products");
		}
	}