J2EE world has a lot of tools which make our development time easier and shorter, sometimes people are asking about web application listener and when to use them. I will try to write how to add a web application listener with Netbeans 7.0, if you dont have any idea about web application listeners, try to understand what are web applicaiton listeners.

1. Web application listeners are added by left clicking on the project, then click New > Other

Screen Shot 2012-08-10 at 14.19.46

 

2. Then choose Web from Categories and select Web Application Listener and click Next

Screen Shot 2012-08-10 at 14.19.22

 

3. After clicking Next the following window will be shown, Interfaces to implement must be selected

Screen Shot 2012-08-10 at 14.20.47

4. All interfaces have their own description on the right side by clicking them you may see information about them

Screen Shot 2012-08-10 at 14.21.03

for more information about event categories and listener interfaces to implement http://docs.oracle.com/cd/B15904_01/web.1012/b14017/filters.htm#i1001462