I wrote this code in Eclipse (
Tomcat server), and i wrote this listener class. But it seems like it's not responding.
Here's my code:
LISTENER CODE:
SERVLET CODE:
ATTRIBUTE CLASS:
WEB.XML COdDE:
So, when i run this, the output is :
Test Context Attributes set by listener
that's it.... It doesn't invoke listener class i think??? I can't figure out where am i going wrong??? Help...
Also, in my web.xml file, i just wrote web-app, removing extra stuff that eclipse adds, because with the added stuff, it showed wrong.
that's not the problem however..
Any idea what's wrong....