DZone

Introduction

In my previous article, Creating Filters With GServlet, we learned how to create filters with the GServlet API for an elegant implementation with the Groovy language. In this one, we are going to cover how to handle Servlet events. During the lifetime of a typical Java EE web application, a number of events take place and the Servlet API provides a number of listener interfaces that we can implement.

ServletContextListener

Source: DZone