The listener class is extending Action as well as implementing
HttpSessionListener interface.

Cant I have servlet in my sessionDestroy() method?

-----Original Message-----
From: Jeromy Evans [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 11, 2007 10:42 AM
To: Struts Users Mailing List
Subject: Re: servlet.getServletContext().getAttribute("userList") is
throwing NullPointerException in my sessionDestroyed() method

 > I am getting NullPointerException in this line Hashtable userList = 
(Hashtable) servlet.getServletContext().getAttribute("userList");

As suggested by others the last time you asked this question, first try 
to determine whether it's the the servlet, servletContext or HashTable 
that's null.
HINT: Where did you get 'servlet' from in the sessionDestroyed() method?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to