> From: André Warnier [mailto:a...@ice-sa.com]
> Subject: Re: set-cookie
> 
>     //  Store products in the ServletContext
>       getServletContext().setAttribute("products", products);
> 
> Presumably, if you store something in the context, it is because you
> want to retrieve it later (or else, what's the point he ?).
> Now, Tomcat has no way to know when you'll come back to retrieve it, so
> it has to create a session to store this.

Nope, that's not it (but I don't know what is, yet).  Attributes stored in a 
ServletContext have a webapp, not session, scope; no session is needed here, 
and nothing needs to be communicated between the client and server to retrieve 
them.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

Reply via email to