Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating pdf,csv file from jsp

 
prathamesh bandivadekar
Ranch Hand
Posts: 43
  • 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
Posts: 42968
73
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic