Tomcat needs to know about MIME types.  Put MIME-mapping statements in your
web.xml file.

<mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>

John Turner
[EMAIL PROTECTED]
  

-----Original Message-----
From: Jakarta Tomcat Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 10:10 AM
To: [EMAIL PROTECTED]
Subject: download file


Subject: download file
From: "J. Jason Zhou" <[EMAIL PROTECTED]>
 ===
I have both Tomcat and IIS running on two machines. But when I download a
file (abc.xls) from Tomcat, the browser loads the binary content without
prompting uisng the save/open dialog while IIS did prompt before the
download.

http://machine/myapp/abc.xls

Can anybody tell me why?

--
Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D,
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to