I use plain jsp to do this.

response.setHeader("Content-Disposition","attachment;filename=data.csv");
response.setHeader("Content-Type", "application/ms-excel");
String result="Whatever you wanna export as csv";
out.write(result);

>From: "Chen, Dean (Zhun)" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: Excel Export
>Date: Mon, 29 Apr 2002 13:25:02 -0400
>
>This might be a little of topic, however, does struts support a 
>standardized
>way to export results from queries in a comma delimited format, for
>importing into excel?
>Thanks,
>
>Dean Chen
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to