views:

1944

answers:

2

Hello All,

I am developing project using Spring, Struts2 & Hibernate.

Now i want to use a Jasper Report with Struts2.

But i am totally new with Jasper Report.

Can anyone give simple example or a tutorial or any other link which can help me..

Thanx in advance..

+1  A: 

I think any jasper-report tutorial will be good for you. Struts2 won't have much influence on how you generate your JasperReport.

You might want to take a look at "Stream Result":

http://struts.apache.org/2.x/docs/stream-result.html

EDIT: I just found this and I think this is what you are looking for: http://struts.apache.org/2.x/docs/jasperreports-plugin.html http://struts.apache.org/2.x/docs/jasperreports-tutorial.html

Tahir Akhtar
A: 

The tutorial that Tahir mentions should help you out. I think I wrote the first version of that way back in the Webwork days. The way that this works is to take a property of your action as an iterable type and to use that as a Jasper data source. That way you can report on your actions instead of against the database. I wrote this to allow us to report against a Versant object database which no reporting tools existed for.

Peter Kelley