Hi, Randy.  Thank you for your help.  

However, I am still a little bit confused.  For HTTP/1.1 implementation, the
connection from client to web server should be persistent.  So how can the
connection to the client be closed after the client get the first page which
containing the applet.  Do you mean, after each reqest-response pair
communication, the connection is closed?  Every request-response pair
communication uses different connection from other pair communication, is
that right?  If so, the applet will use different connection for each
request-response communication.  Is that right?
Thank you.

Jianming Wang

-----Original Message-----
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 3:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Connection/Session question



        Not really.  The client will download the content of the JSP page
(which contains the applet).  Assuming that you are using Tomcat in
standalone, the connection to the client will be closed.  Then the applet
will start and the make its connection.

        So you will have two connections, although they will be at different
times.

        Unless you set the cookie for the session or form your URL to
include the sessionid your applet will not join an already existing session.
Instead  a new one will be formed.

        Randy

-----Original Message-----
From: Wang, Jianming [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 10:59 AM
To: '[EMAIL PROTECTED]'
Subject: Connection/Session question


Hello,

I have a question:

-   If I have a page containing a applet and some other HTML content, and
the applet uses a URLConnection to connect to the web server.  In this case,
how many connections/sessions I have?   2 connections?  one from the page
itself and one from the applet?

Could any guru please help?  Thanks in advance.

Jianming Wang



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

---------------------------------------------------------------------
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