Re: HttpSession doubt in Applet to Servlet Communication

Bhushan Bhangale <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Organization Fusion Technologies
Message-ID <[email protected]>
Hey I got it since I am using new URL(myurl) its working fine as I guess
this constructor must be using encodeURL kind of thing inside.

Regards
Bhushan


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[email protected]] On Behalf Of
Michael Weller
Sent: Wednesday, February 19, 2003 3:02 PM
To: [email protected]
Subject: Re: HttpSession doubt in Applet to Servlet Communication


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

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.