Set the Content-Disposition header. See here for more info
:http://support.microsoft.com/servicedesks/webcasts/wc011101/WCT011101.asp
Regards
Jim.
-Original Message-
From: Liu, Xiaoyan [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2002 22:05
To: 'Tomcat Users List'
Subject: RE: serving
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
sorry. I mean 'cannot'.
For a static csv file, it displays as plain text.
For a non-static file, the response header type is
set as 'application/vnd.ms-excel', the file IS opened
in excel , BUT with all columns in a row squeezed in one cell.
thank you.
-Original Message-
From: Liu,