protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
		List<Category> categories = null;
		Hashtable<Long, Boolean> canDelete = null;
		HttpSession session = req.getSession(true);
		User user = (User)session.getAttribute("currentSessionUser");
		
		// Checks if there is a user present, as well as if the user is an owner
		if (user == null || !user.isOwner()) {
			// If not then let the .jsp file know that the user doesn't have permission to view this page
			req.setAttribute("permission", false);
			req.getRequestDispatcher("categories.jsp").forward(req, res);
			return;
		} else {
			// Else everything goes as planned
			try {
				categories = CategoryDAO.list();
				canDelete = ProductDAO.categories();
				
			} catch (SQLException e){res.sendRedirect("products"); }
			req.setAttribute("list", categories);
			req.setAttribute("permission", true);
			req.setAttribute("delete", canDelete);
			req.getRequestDispatcher("categories.jsp").forward(req, res);
			return;
		}
		
	}