This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Jasper usage in J2EE

 
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
 
Sheriff
Posts: 24654
58
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)
 
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)
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!