I'm with Guru on this one (theres a surprise for you).
I'd hate to see this list turn into a non-struts Webapp tutorial, can
someone point this guy at a good webapp tutorial and then just keep pointing
him at it until he reads it.
-----Original Message-----
From: Raghupathy, Gurumoorthy [mailto:Gurumoorthy.Raghupathy@nielsen.com]
Sent: 11 June 2007 09:00
To: Struts Users Mailing List
Subject: RE: servlet.getServletContext().getAttribute("userList") is
throwing NullPointerException in my sessionDestroyed() method
Guys,
I think we are wasting our time here ... this thread has nothing to
do with struts in the first case ..... why are we trying to teach him when
he is not ok to get a good book and get his basics right ..
I think he needs to read the spec first ...
I think he lacks the basic understanding of how java works ( servlet in
particular ) works .....
You need to read the servlet specifications.. there is no way you can get
Regards
Guru
-----Original Message-----
From: Srinivasula Reddy A , Bangalore [mailto:srinivasulaa@hcl.in]
Sent: 11 June 2007 06:22
To: Struts Users Mailing List
Subject: RE: servlet.getServletContext().getAttribute("userList") is
throwing NullPointerException in my sessionDestroyed() method
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:jeromy.evans@blueskyminds.com.au]
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org