File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts 2 + Jasper reports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 + Jasper reports" Watch "Struts 2 + Jasper reports" New topic

Struts 2 + Jasper reports

Dejan Mratinkovic
Ranch Hand

Joined: Nov 20, 2008
Posts: 65
Do you use this combination?

Using struts 2.1.6 with Jasper 3.5.3.

I have tried couple of solutions, non looks clean enough for me.

Googling suggests usage of struts 2 jasper plug-in, but I couldn't find it for download. Links mostly to java docs of plug-in. Was it part of 2.0.*? Where/how to download it if it can be used with version os struts I am using?

I have ended up using Sruts 2 "stream". I got it working with jasper writing directly to stream, but it, although worked fine, reported stream related errors in logs.

I am currently on temp file solution, which works fine, with no errors in log, but does not seem right.

What is your way of doing this? Do you let jasper write to stream, another simple solution I might have missed, or there is another plug-in for this?

David Newton

Joined: Sep 29, 2008
Posts: 12617

It's in the distro.
Dejan Mratinkovic
Ranch Hand

Joined: Nov 20, 2008
Posts: 65
Thanks for quick response.

I see just now how stupid my question was. I was mislead by the fact we use only limited subset of struts libs on our project, and I could not find it there.

I am just confused now why there are so many alternative solutions on various forums.

Good thing is, I have spent almost no time on this, as "issue" got resolved while I was on lunch break.

Consider Paul's rocket mass heater.
subject: Struts 2 + Jasper reports
It's not a secret anymore!