public void getAllEvents(HttpServletRequest request, HttpServletResponse response) {
        UserDAO.User user = (UserDAO.User) request.getSession().getAttribute("user");
        int usertype = (Integer) request.getSession().getAttribute("usertype");
        List<EventDAO.Event> events = null;
        if (usertype == UserDAO.USER) {
            events = EventDAO.selectUserEvents(user.id);
        } else {
            events = EventDAO.selectAllEvents();
        }
        request.setAttribute("events", events);
        try {
            request.getRequestDispatcher("/app/events.jsp").forward(request, response);
        } catch (Exception e) {
        }
    }