This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
Consider Paul's rocket mass heater.
subject: providing download option
Similar Threads
Telephony CSTA
Custom Data format in POI
Use download link to get data in CSV format in JSP page
where to download stuts framework api?
Telephony CSTA