This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes HttpSessionListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpSessionListener" Watch "HttpSessionListener" New topic
Author

HttpSessionListener

Sharanya Sharma
Ranch Hand

Joined: Jul 26, 2004
Posts: 54
Hi,

I have a servlet with a doGet method with a call to the listener class's method.

The problem is that though the listener class is visible to the servlet class, when I try to access the public static method of that class on the class, I am getting variable not found error.

I have correctly added the entries of the listener and the servlet in the web.xml(I dont think it has anything to do with the error).

Thx,
Sharanya
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: HttpSessionListener