Messagea) You could implement your own simple session mechanism: On the
applet's first request, the servlet responds with an id that the applet
sends with every subsequent request and that the servlet uses to "recognize"
clients.
b) You use Jakarta's HttpClient classes instead of java.net.-stuff. AFAIK,
it supports cookies so you can use the standard session mechanism provided
by your servlet container.

HTH!

-mw


----- Original Message -----
From: Bhushan Bhangale
To: [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 4:35 AM
Subject: HttpSession doubt in Applet to Servlet Communication


Hi,

When we have a normal JSP or Servlet site we use the HttpSession object to
keep some user related information. How this can be done when doing Applet
to Servlet Communication? When we call a servlet from applet we give a URL
object to URLConnection and does the thing. Now suppose in first call to
servlet I store some info in HttpSession. After some time one more call go
to a servlet, will that servlet be able to access the same HttpSession
object?

Regards
Bhushan

___________________________________________________________________________
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