Thanks - works perfectly.
-Chris
On Jan 26, 2006, at 6:04 PM, Tim Lucia wrote:
Here's how I've done it from a .jsp:
<% response.reset();response.setContentType("text/comma-separated-
values;
charset=UTF-8");response.setHeader("Content-
disposition","attachment;filenam
e=csvoutput.csv");%>
Skip the response.reset() if running from inside a servlet...
Tim
-----Original Message-----
From: Christopher Molnar [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 26, 2006 5:57 PM
To: Tomcat Users List
Subject: send a csv file from tomcat?
Can anyone tell me how to send a stream as a CSV (comma seperated
file) rather than as an HTML page? I curently am sending the data
as a
Response.
Thanks,
-Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]