tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Webber <web...@mminternet.com>
Subject CSV File
Date Tue, 05 Feb 2002 23:57:46 GMT
I want the browser to download the file and not display a CSV file that
I have created.  Right now I issue the following commands, but it
doesn't seem to work.. Any ideas are appreciated.


String file;
...

response.setHeader("Content-length","file.length()");
response.setHeader("Content-type","application/octetstream");
response.setHeader("Content-disposition","inline;
filename=\"report.csv\"");
out.print(file);


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message