struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Milanovic <>
Subject Re: JasperReports Plugin datasource
Date Thu, 20 Nov 2008 18:11:39 GMT

Dear Dave,

newton.dave wrote:
> --- On Thu, 11/20/08, Milan Milanovic wrote:
>> net.sf.jasperreports.engine.query.JRJdbcQueryExecuter:89 -
>> The supplied java.sql.Connection object is null.
>> I check, my Connection object which is attribute of my
>> action class is not null in action method which show report. 
>> Why my Connection is null, do you have any idea ?
> Not off the top of my head, but I'm not sure how you're trying to use it.
> The JR plugin's "dataSource" config element is meant to be a collection
> that will be displayed by the report.
> If you're passing the connection object in the parameters map and
> accessing it appropriately in the report definition then I don't know why
> it wouldn't work, but I've never used the plugin like that--that's a
> non-standard usage I haven't needed to explore.

Well, fillReport() of JasperReports accept Connection object and parameters,
too. I used this before many times. I'm just not sure why I get this error,
it seems that Connection object is destroyed in JasperReportsResult class or

newton.dave wrote:
>> One more thing, is it possible to show report in new window
>> and that my application redirect to some web page in main window ?
> I suppose, maybe via JavaScript or something.

O.K. I'll check this.


View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message