wood burning stoves*
The moose likes JSP and the fly likes Downloading the jsp as .csv file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Downloading the jsp as .csv file." Watch "Downloading the jsp as .csv file." New topic
Author

Downloading the jsp as .csv file.

Kaustubh Patil
Ranch Hand

Joined: Aug 13, 2001
Posts: 164
I have a requirement in my application that the data displayed on the jsp should be downloaded as .xls and .csv file.
As far as .xls is concerned i can do it by setting the content type. But i have no clue about how to download it to .csv file.
any ideas ?
-Kaustubh.


Kaustubh. Mumbai, India.
Chris Reeves
Ranch Hand

Joined: Apr 03, 2002
Posts: 95
CSV stands for comma separated values.
So, you can set your content type to text/plain.
Joe Pardi
Ranch Hand

Joined: Oct 03, 2001
Posts: 47
Anothe rcommon way to do CSV is to set the page's content type to "application/csv".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Downloading the jsp as .csv file.