tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darryl L. Miles" <>
Subject Re: request.getSession(false) incorrectly creates a session
Date Tue, 15 Nov 2005 06:02:59 GMT

<jsp:useBean id="foobar" scope="session" class="com.yourdomain.Foobar" />

"The session is not explicitly created by anything in the JSP page", 
does this include scope="session" users in your JSP files  ???

Len Popp wrote:

>I have observed that request.getSession(false) returns null when it's
>called from the top of my servlet in the first request from a client,
>but when the servlet forwards the request to a JSP page (via
>RequestDispatcher.forward) the session gets created. The session is
>not explicitly created by anything in the JSP page but something is
>doing it. That's as far as I've got - I haven't dug into the Tomcat

Darryl L. Miles

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message