@Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        UserDAO.User user = (UserDAO.User) request.getSession().getAttribute("user");
        int usertype = (Integer) request.getSession().getAttribute("usertype");
        List<EventDAO.Event> events = null;
        if (usertype != UserDAO.ADMIN) {
            response.sendRedirect("../index.jsp");
            return;
        }
        events = EventDAO.selectAllEvents();
        request.setAttribute("events", events);
        try {
            request.getRequestDispatcher("/app/assign.jsp").forward(request, response);
        } catch (Exception e) {
        }
    }