File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes providing download option Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "providing download option" Watch "providing download option" New topic

providing download option

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
I have many pages on site which display data in tabular (using <table> HTML tag) format e.g. list of students (columns are: name, age, sex etc). I'd like to give a download option there so data can be downloaded in xls format.

Will I have to write custom code for this or any utility already does that?
If custom then POI API will be the way to go, right? Or any client side (JavaScript API) can help?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Did I post this here or it's been moved here from HTML & JS forum?
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874

HTML & JS are not suited for this.

Why dont you go with simlpe Servlet option . Use ServletOutputStream and write bytes to the outputstream.
I agree. Here's the link:
subject: providing download option
jQuery in Action, 3rd edition