tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Smith" <>
Subject Re: doPut Session retrival
Date Mon, 06 Nov 2000 01:39:40 GMT

There is no bug for retrieving a session in either
method that I have seen. I do what you describe
all the time. Try killing the tomcat process and
dumping the work directory, the restarting tomcat.
That will probably clean things up.

The other possibility is that you simply don't have
a session, which would indeed return null with
getSession(false). Don't use that, use getSession(true).

----- Original Message ----- 
From: "Kevin Kress" <>
To: <>
Sent: Thursday, December 21, 2000 7:19 PM
Subject: doPut Session retrival

> Hello,
> I am having a problem with session retival.
> Not sure if this is a bug or a design issues, but here goes:
> I have 2 servlets (one happens to be turbine, but that shouldn't matter)
> Servlet 1 addes something to the Session object.
> Servlet 2 have doGet and doPut:
> doGet in servlet 2 can retrive the session object and manipulate it
> without a problem.
> doPut in servlet 2 cannot retrive the session (using
> request.getSession(false) returns null after servlet 1 has added
> something)
> I tried looking in the src tree for some sign of what was happening, but
> I got lost.
> If this is a bug can someone point in the right direction (include CVS
> module and path) and I will try and fix it.
> Any help would be appreciated.
> Kevin

View raw message