This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "providing download option" Watch "providing download option" New topic
Author

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?

Thanks.
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.
 
jQuery in Action, 2nd edition
 
subject: providing download option