New to tomcat and Servlet code, and for that matter posting on this forum
so please bear with me ;-)
The symptom is a NullPointerException when I call getSession() on an
HttpServletRequest object. The HttpServletRequest object had previously
been saved as an attribute of the Session that
Howdy,
The symptom is a NullPointerException when I call getSession() on an
HttpServletRequest object. The HttpServletRequest object had
previously
been saved as an attribute of the Session that it contained.
This seems prone to problems. How can storing the request itself as a
session
OK thanks for responding to my first question; I looked around, some
interesting discoveries within:
On Tue, 30 Sep 2003, Shapira, Yoav wrote:
Howdy,
The symptom is a NullPointerException when I call getSession() on an
HttpServletRequest object. The HttpServletRequest object had
The short answer is that you can't do this. It's true that Tomcat 3.2.x
allowed you to get away with nasty hacks like this, but in subsequent Tomcat
versions the Request object is only valid for the lifetime of the request.
Dave Barkan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]