You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mark Lundquist <ml...@wrinkledog.com> on 2004/03/05 12:31:19 UTC
CSV file download to user
Hi,
My application needs to be able to generate data in CSV format to
download to the application user. What's the best way to do this?
My first guess would be to configure a TextSerializer in the sitemap
with name="csv" and mime-type="application/csv", then generate my CSV
wrapped in a SAX stream and pipe it through this.
Questions:
1) Will this work?
2) What about characters that are represented as entities in the SAX
stream? Will the TextSerializer do what I want with those?
3) Is there a better way?
Thanks for any advice,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: CSV file download to user
Posted by Jorg Heymans <jh...@domek.be>.
Maybe the poi serializer has support for csv already?
Mark Lundquist wrote:
> Hi,
>
> My application needs to be able to generate data in CSV format to
> download to the application user. What's the best way to do this?
>
> My first guess would be to configure a TextSerializer in the sitemap
> with name="csv" and mime-type="application/csv", then generate my CSV
> wrapped in a SAX stream and pipe it through this.
>
> Questions:
> 1) Will this work?
> 2) What about characters that are represented as entities in the SAX
> stream? Will the TextSerializer do what I want with those?
> 3) Is there a better way?
>
> Thanks for any advice,
> Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: CSV file download to user
Posted by Tim Larson <ti...@keow.org>.
On Fri, Mar 05, 2004 at 03:31:19AM -0800, Mark Lundquist wrote:
> Hi,
>
> My application needs to be able to generate data in CSV format to
> download to the application user. What's the best way to do this?
>
> My first guess would be to configure a TextSerializer in the sitemap
> with name="csv" and mime-type="application/csv", then generate my CSV
> wrapped in a SAX stream and pipe it through this.
>
> Questions:
> 1) Will this work?
> 2) What about characters that are represented as entities in the SAX
> stream? Will the TextSerializer do what I want with those?
> 3) Is there a better way?
>
> Thanks for any advice,
> Mark
I don't have time to check this for you right now , but you could
look at how the Cocoon presentation layer in xReporter
http://xreporter.cocoondev.org does this. It supports CSV, fixed-
width text, etc.
--Tim Larson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org