One solution would be to use a servlet or JSP page to write out the CSV
file.

It may make sense to have one servlet generate the table, and then use two
"view" components (servlets or JSP) to present the data as either HTML or
CSV. This might even be a good XML application - one component generates the
data in XML format and then you can transform/present it as either HTML or
CSV.

-Max

----- Original Message -----
From: "Michael Gerdau" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 1:37 AM
Subject: HTML-Tables downloadable as CSV-Files. How ?


> Hi !
>
> I have a webapp which among other things let the user run some analytics
> which are displayed in a tabular view.
>
> I now wish to add a feature that allows the user to downloaded these
> dynamically created tables as CSV-files such they they are available
> for additional processing by e.g. StarCalc/Excel locally.
>
> Has anybody done that and what would be a proposed way of doing it ?
>
> FWIW I'm running on Tomcat 4.0.1 with Struts nightly build.
>
> Any help appreciated, best,
> Michael
> --
>  Vote against SPAM - see http://www.politik-digital.de/spam/
>  Michael Gerdau       email: [EMAIL PROTECTED]
>  Good people do not need laws to tell them to act responsibly,
> while bad people will find a way around the laws.
>      - Plato (427-347 B.C.
>  PGP-keys available on request or at public keyserver
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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

Reply via email to