Event, Servlet and Controller Code