jQuery in Action, 2nd edition
The moose likes Other Open Source Projects and the fly likes Generating pdf,csv file from jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Generating pdf,csv file from jsp" Watch "Generating pdf,csv file from jsp" New topic

Generating pdf,csv file from jsp

prathamesh bandivadekar
Ranch Hand

Joined: May 22, 2008
Posts: 43
Hi all,

I have a question on the subject i wrote above i.e. generating pdf, csv file from jsp.

My question is as follows -:

If i want to download the data present in the jsp wile into pdf or csv file;where will my coding will go.
i.e. whether i have to write my code in jsp or in bean.
or i have to create a pdf or workbook object and send it across the network to jsp file.
The result displayed on the jsp is in session in the form of Vector.

Thanks in adavance.


Prathamesh M.B.<br />Java....only.....
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42954
Since you mention CSV, I assume that the data has a tabular or list form. In that case the easiest way is probably to use the displaytag library for displaying the data; once it knows how to access the data in order to create HTML, it can provide PDF, XLS and CSV downloads with no additional coding.
I agree. Here's the link: http://aspose.com/file-tools
subject: Generating pdf,csv file from jsp