>>> Marc Krisjanous <[EMAIL PROTECTED]> 24-May-00
9:45:05 AM >>>
>Now, will the shopping cart servlet put data into the
>shopping cart class that is related to the individual session??
>I believe so - I believe that some how the servlet knows what
>shopping cart class is related to that customers request - is this
>true?? - session meaning a user working with the shopping cart
>functionality in a web browser.
Yes but it doesn't happen magically.
An HttpSession object is kept on the server but the reference to the
session is passed between the browser and the servlet, generally using
a cookie.
When you do this:
HttpSession mysesh=request.getSession(true);
a session is created UNLESS one already exists.
Therefore it behaves exactly as you want it to.
Stroke of luck that eh?
Nic
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html