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