This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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: 42965
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:
subject: Generating pdf,csv file from jsp
jQuery in Action, 3rd edition