Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 88222 invoked from network); 10 Oct 2010 02:44:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Oct 2010 02:44:15 -0000 Received: (qmail 32351 invoked by uid 500); 10 Oct 2010 02:44:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32306 invoked by uid 500); 10 Oct 2010 02:44:12 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 32297 invoked by uid 99); 10 Oct 2010 02:44:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Oct 2010 02:44:12 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [68.142.201.39] (HELO web408.biz.mail.mud.yahoo.com) (68.142.201.39) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 10 Oct 2010 02:44:02 +0000 Received: (qmail 81669 invoked by uid 60001); 10 Oct 2010 02:43:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1286678620; bh=EgZXnYjtb6DMV2S9alypVvdYzGEpHml3bepa6IHWCTw=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=L6jPrXj5u2WPsC4JIkc5yqYvbarUi0hv51ss7nj+MGQPsNI7xzFOz5ivKgRHpTh1UDLdMU/K2hCHe7bavtXNtc7WpGKZSAHC+8ld6ZxoV/kEmtN7y9f71cJ2CuAswRe596HtIQm/Uqt4F8ZJ/QOUKprlHuKp4LAkCo9EECqKKpo= Message-ID: <720753.81239.qm@web408.biz.mail.mud.yahoo.com> X-YMail-OSG: j8iJHksVM1nijKG7uNGMgNrRw2Q_ZUazQpfOQFI2VHmDHpG tAmqSkDWu0WxX9Xh_mzWDF5.Ixh46HCL9dae4GfyTUPg2NN7BYfmY5TfF3A3 c.zvaWnukSzRxtd2sLs.2Sj6PQjd_oX25sRb8chAbtA9UFiIvuaWjWqLTzSL FwHXKynz2Ms9RmhRQulwbZKvPAz5a6fqKhNNJSlvGlLoVz7kjUe5itikpSaO qXZqg9.di5JOtpX7f9qSTL5.720bHqsmICqV51xnfbUQEvmBGMsjp1rRyrOl MwoU0DqTT Received: from [117.193.209.29] by web408.biz.mail.mud.yahoo.com via HTTP; Sat, 09 Oct 2010 19:43:40 PDT X-Mailer: YahooMailRC/504.5 YahooMailWebService/0.8.106.282862 Date: Sat, 9 Oct 2010 19:43:40 -0700 (PDT) From: Ram karthik Subject: Fw: Applet Servlet communication in Tomcat 7 To: users@tomcat.apache.org Cc: ramkarthik@agastha.com, velmurugan@agastha.com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-771757897-1286678620=:81239" X-Virus-Checked: Checked by ClamAV on apache.org --0-771757897-1286678620=:81239 Content-Type: text/plain; charset=us-ascii Hi Folks, I have applet code for connecting servlet, It works fine in Tomcat 6, when i upgraded the tomcat version to 7. it is not working. Using this code for connecting Servlet. this will download a file to client machine but it is not going to servlet itself. URL servletURL = new URL(url); URLConnection servletConnection = servletURL.openConnection( ); servletConnection.setDoOut put(true); servletConnection.setUseCa ches(false ); InputStream in = servletConnection.getInput Stream(); StringBuffer response = new StringBuffer(); int chr; while ((chr = in.read()) != -1) { response.append((char) chr); } in.close(); Writer output = null; File newfolder = new File(localPath); boolean newflag = newfolder.isDirectory(); if (!newflag) { newfolder.mkdirs(); } File file = new File(localPath + fileName); if(file.exists()) file.delete(); output = new BufferedWriter(new FileWriter(file)); output.write(response.toSt ring()); output.close(); the below one is applet code and the debugs got in console basic: Applet made visible basic: Starting applet network: Connecting https://localhost/utilApp/ servlet/Ut ilAppsServ let?mode=0 & fileName= filea.ARA with proxy=DIRECT network: Connecting https://localhost/utilApp/ servlet/Ut ilAppsServ let?mode=0 & fileName= fileb.ARA with cookie "user=help; ZP_CAL=%27........" network: Server https://localhost/utilApp/ servlet/Ut ilAppsServ let?mode=0 & fileName= filec.ARA requesting to set-cookie with "JSESSIONID=AC3E134CEAF903 20BA442DF8 81B8F5AD.t omcat7; Path=/utilApp; Secure; HttpOnly" basic: Applet started Eagerly waiting for your reply. Please let me know if i need to change any settings in Tomcat 7 Thanks, Ram Karthik. Agastha Inc. --0-771757897-1286678620=:81239--