I've found it easire to simply pass the session ID as a parameter,
and then in my servlet receive it back and use the
HttpSessionContext.getSession(sessionID).  I find it easier than messing
with the cookies.

        Randy


-----Original Message-----
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 5:23 PM
To: [EMAIL PROTECTED]
Subject: RE: Connecting to a servlet from within an applet


>       You simply need to make a request.  It depends upon what you are
>trying to do.  A GET or POST request can be made by 
>URLConnection fairly
>easily.  If you are looking for a session, you have to pass 
>the session id
>back (the applet doesn't know about the cookies of the browser 
>its running
>in without some help from JavaScript).
>
>       There is no Tomcat (or any web server for that matter) specific
>stuff you need to do.
>

And you have to code the cookies support to allow the servlet track
your sessionid ;-)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to