This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
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

Jasper usage in J2EE

 
Ranjith Kodikara
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am evaluating Jasper for some of my future projects. I want to know whthwe Jasper can be used inside Tomcat or other servlet container to present report to users. In an standalone application, I can generate a .pdf type report to a directory of OS. If I use a servlet, will I be able to give the .pdf report as the servlet output? (This is like setting contentType we can out put an xml file instead of html. Like that can we give the .pdf report as output??). If you have sample source code, it will be fine too.

I would be grateful for your help and it's very much appreciated.

Thanks and best regards,
Ranjith
 
Paul Clapham
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can output PDF from a servlet as well. Your content type would be "application/pdf".

And I had a quick look at the Jasper Reports documentation page which has a link to this article about Jasper Reports in J2EE.
 
Ranjith Kodikara
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Paul. I read the article you reffered and it contains the information I requested. Your help is very much appreciated.

When further looking at this matter, I found that there is a webapp folder in Jasper sample applications. Its coming with the Jasper installation package.

If someone is looking for the answer to j2ee-jasper integration, that webapp sample directory's path is jasperreports-1.2.3\demo\samples\webapp.


Thanks,
Ranjith (ranjith@dmsswt.com)
 
Richard Walton
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yip its a very cool demo but if you want somethign better let me know i have some code.
Also have a look at BIRT. ( Eclipse project)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic