Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 52224 invoked from network); 9 Feb 2001 18:53:25 -0000 Received: from unknown (HELO tfsmdmsg5.cda.com) (198.80.171.28) by h31.sny.collab.net with SMTP; 9 Feb 2001 18:53:25 -0000 Received: by tfsmdmsg5.cda.com with Internet Mail Service (5.5.2650.21) id <1A96Z9LP>; Fri, 9 Feb 2001 13:49:13 -0500 Message-ID: From: "Wang, Jianming" To: "'tomcat-user@jakarta.apache.org'" Subject: RE: Connection/Session question Date: Fri, 9 Feb 2001 13:57:23 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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:randy.layman@aswethink.com] Sent: Thursday, February 08, 2001 3:13 PM To: tomcat-user@jakarta.apache.org 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:Jianming.Wang@tfn.com] Sent: Thursday, February 08, 2001 10:59 AM To: 'tomcat-user@jakarta.apache.org' 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: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, email: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, email: tomcat-user-help@jakarta.apache.org