@EJB
EventManager eventManager;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
int id = Integer.parseInt(request.getParameter("id"));
Event e = eventManager.getEvent(id);
if (e == null){
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Entity not found");
}
request.setAttribute("event", e);
getServletContext().getRequestDispatcher("/WEB-INF/.jsp").forward(request, response);