File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to export an HTML file to .csv file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to export an HTML file to .csv file" Watch "how to export an HTML file to .csv file" New topic
Author

how to export an HTML file to .csv file

June
Greenhorn

Joined: Aug 16, 2001
Posts: 24
Does anybody know where I can get info about how to export an HTML file to .csv file?
For example, I create a webpage that has an export button or link... allowing user to export the current webpage to an .csv file to his/her machine.
Thanks a lot!!!
JQ


JQ
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
I'm assuming you mean that you want to export the information in a page as a CSV file, not the whole page with markup etc.- and that the goal is to generate data that can be read by Excel or some such application.
Your button can link to a servlet that generates CSV text instead of HTML, the main thing is that you will have to set the content type to match. For example, you might use the content type:
application/vnd.ms-excel
Is that what you had in mind?
Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to export an HTML file to .csv file
 
Similar Threads
Export data to csv if the user search exceed 50 results
CSV file
java code to export mssql data into csv file
How can i show backend table data in CSV format
exporting to CSV