You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zohar <da...@hotmail.com> on 2006/07/27 16:12:42 UTC

file type and name

Hello list,
I have a servlet that generates a CSV file. What I do is:

response.setContentType("application/csv");
PrintWriter out = response.getWriter();
out.write(csvContent);
out.flush();

What I get is attached.
How do I fix this? I also want the filename to be something else...

Thanks,
Zohar