What's your request URL? I do it by using a servlet mapping that ends in ".csv" to fool the browser into thinking it's actually downloading a file. I set the content-type header to "application/csv" which isn't really a universal standard, but if I remember right, the mime mapping you listed will make Excel think it's opening a real .xls spreadsheet and not a text file and it screws things up.
Jeff ----- Original Message ----- From: "Liu, Xiaoyan" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Thursday, May 09, 2002 3:51 PM Subject: serving CSV file > Hi, all, > > I can seem to make tomcat 4.0.2 serving csv (comma-seperated file) > file. The files are open plain text in IE. I added the following > mime-mapping to web.xml: > > <extension>csv</extension> > <mime-type>application/vnd.ms-excel</mime-type> > > is there anything else needs to change? > > thank you. > > > Liu > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>