Independently from Struts, you have to change the MIME-type of your
HTTP-response
(from text/html, text/plain or whatever) to application/csv.
Then it should work.

Regards
Max


-----Original Message-----
From: Michael Gerdau [mailto:[EMAIL PROTECTED]]
Sent: Montag, 03. Dezember 2001 10:38
To: Struts Users Mailing List
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