Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSessionListener

 
Sharanya Sharma
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic