Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 15287 invoked from network); 29 Sep 2004 12:34:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Sep 2004 12:34:12 -0000 Received: (qmail 16085 invoked by uid 500); 29 Sep 2004 12:32:34 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 15943 invoked by uid 500); 29 Sep 2004 12:32:31 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 15816 invoked by uid 99); 29 Sep 2004 12:32:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [63.244.250.132] (HELO mustang.mpi.com) (63.244.250.132) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 29 Sep 2004 05:32:24 -0700 Received: from thunderbolt.mpi.com (thunderbolt [63.244.253.70]) by mustang.mpi.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id i8TCWHkx010320 for ; Wed, 29 Sep 2004 08:32:18 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [63.244.252.32]) by thunderbolt.mpi.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id i8TCVnfU027419 for ; Wed, 29 Sep 2004 08:32:07 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: XLT file won't open in associated application (Excel) Date: Wed, 29 Sep 2004 08:31:26 -0400 Message-ID: <9C5166762F311146951505C6790A9CF80229C284@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: XLT file won't open in associated application (Excel) Thread-Index: AcSmAhDNhaznJwSGSAm1d2k7oswn6QAHhcUA From: "Shapira, Yoav" To: "Tomcat Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N H= i, When you do the download, are you streaming it yourself from a servlet= , or asking for it as a static resource? If the former, you should us= e the http-equiv content-disposition header. Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: V=E1clav=EDk Radek [mailto:Radek.Vaclavik@zentiva.cz] >Sent: Wednesday, September 29, 2004 4:52 AM >To: 'tomcat-user@jakarta.apache.org' >Subject: XLT file won't open in associated application (Excel) > >Hi all, > >I am trying to download an XLT (Excel template) file from Tomcat serv= er, >but >instead of running excel and opening the file, browser (IE 6) shows t= he >file >in binary. > >I have tried setting the MIME mapping in web.xml for this site such a= s: > > xlt > application/vnd.ms-excel > > >(I have tried also "msexcel", "excel"). But I still can't get the bro= wser >to >run Excel. > >When I put the same file onto MS IIS server and try to download it, E= xcel >runs and opens the file correctly. I have inspected HTTP requests and= >responses from both servers and found no relevant difference. > >I also have similar problem with dot file type (MS Word document temp= late). >I have added the following to web.xml: > > > dot > application/msword > > >and when I run the Tomcat server on localhost while developing, this = works >fine and runs Word. But when I deploy the application to production T= omcat >server, Word is not run and binary file is displayed again. With dot = file >type this does not work in either case (as mentioned above). > > >I am using Tomcat 5.0.12 for developing and 5.0.19 for production. > > >Thanks for possible solutions. > > >Radek > >_____________________________ > >Ing. Radek V=E1clav=EDk >ICS Department - webmaster > >ZeNTIVA a.s. >U Kabelovny 130, 102 37 Praha 10 >Czech Republic >tel. +420 267 243 296 >_____________________________ This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org