File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating pdf,csv file from jsp

 
prathamesh bandivadekar
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Cheers!!!
Pratham.

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic