> -----Original Message-----
> From: A Yang [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 3:05 PM
> To: [EMAIL PROTECTED]
> Subject: Question about sessions
>
>
> If I instantiate a javabean from a JSP:
>
> <jsp:useBean id="myBean" class="com.mycorp.somebean"
> scope="session">
> <jsp:setProperty name="myBean" property="*"/>
> </jsp:useBean>
>
> and hand off control to a servlet where I retrieve the
> session using:
>
> HttpSession session = req.getSession(false);
>
> Shouldn't session.isNew() return "false" because the
> session already exists?
>

I don't think so, IF the client hasn't yet seen the session. I think it only
returns false if the request includes the session ID, which it won't until
there has been a round-trip back to the client.

George McKinney, Developer
tantalus communications inc.
500-1122 Mainland Street
Vancouver, BC, Canada V6B 5L1
[EMAIL PROTECTED]

Direct  604.726.6753
Main    604.609.0700
Fax     604.609.0705
www.tantalus.com
"When eBusiness experience counts."



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

Reply via email to