tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wannamaker" <Ke...@Wannamaker.org>
Subject RE: problem with mime-type "application/csv"
Date Wed, 22 May 2002 14:40:43 GMT
You can't force a save-as because IE ignores 
the content-type header in many cases.  If
you search the MSKB you will see various articles
about this.  All Tomcat can do is set the content
type on the response, you might want to verify
this is happening.

Keith

| -----Original Message-----
| From: Ueli Staempfli [mailto:ueli.staempfli@iclip.ch]
| Sent: Wednesday, May 22, 2002 8:36 AM
| To: tomcat-user@jakarta.apache.org
| Subject: problem with mime-type "application/csv"
| 
| 
| I would like to return a stream through my application an save it as a
| CSV-File. I tried adding
| 
| <mime-mapping>
|         <extension> csv </extension>
|         <mime-type> application/csv </mime-type>
| </mime-mapping>
| 
| to my web.xml file in the conf directory of Tomcat(3.2.3) and it didn't
| work. The mime-type is set to application/csv so the browser should
| recognize it (it's not a file with extension *.csv) and show the save-as
| dialog (?). Instead of that the text appears in the browser as normal html
| output.
| I tried it with ie5.5 and netscape6.2.
| I saw various messages with questions about this problem, but no answer...
| 
| 
| Any help appreciated...
| Ueli
| 
| 
| --
| To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
| For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
| 
| 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message