File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpSessionListener" Watch "HttpSessionListener" New topic


Sharanya Sharma
Ranch Hand

Joined: Jul 26, 2004
Posts: 54

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).

I agree. Here's the link:
subject: HttpSessionListener
It's not a secret anymore!