Nelson wrote:
>
> Hi all,
>
> I am trying to use HttpSession's for my applet to servlet and servlet to
> applet communication. I have an applet that calls the doPost() method in
> servletA this then makes a new session object and attaches a User object to
> it. The applet then calls the doGet() method of servletB however in that
> doGet() method when I retrieve the session it says it is null! I don't
> understand why it can be null when it was set in servletA. Can anyone help
> me please? I can't do anything until I get over this problem.

Since you are using object-to-servlet communication, the object (your Applet) is
responsible for getting the session id from the response, and returning the
session id on subsequent requests to the server. I would guess your applet is
not doing this, so the servlet container thinks the request to servletB is a new
request and has no session.

K Mukhar

___________________________________________________________________________
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

Reply via email to