2 Minutes To Code (β Version)

Java Servlets - 2 minute tutorial

How to deploy your listener

Listeners are configured in the deployment descriptor(web.xml) using the elements & as shown below.

<web-app>
        <listener>
            <listener-class>com.tf.MyListener</listener-class>
        </listener>
    </web-app>