struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad S. Lauritsen" <>
Subject Re: Jasper plugin
Date Tue, 10 Jul 2007 14:24:47 GMT
Sure. I've attached an action that will allow you to use jasperreports 
to write to the output stream. You'll have to tweak the classpath. Mine 
probably won't work. It will load, compile and cache jrxml files located 
in /WEB-INF/reports. It uses a javax.sql.DataSource from JNDI. It also 
will take request parameters and translate them into java objects in 
order to pass into the JasperReports engine.

aretobios wrote:
> I have created some reports with iReport and I tried to integrated them with
> my struts2 web application. While the documentation for the jasperReport
> plugin explains how to use a datasource and a compiled template to generate
> a report, I wasn't able to find out how to use a database connection as a
> datasource and how to pass parameters to the report.
> Is there any way to pass parameters from an action?
> Can I use a connection from a connection pooling as a datasource?
> To overcome these problems I changed the source code of the plug-in.jkoutr@

Chad S. Lauritsen
Ecommerce Enterprise Developer
The Sherwin-Williams Company

View raw message