struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Milanovic <milanmilanov...@yahoo.com>
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:
>> WARN
>> 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
something.


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.

--
Milan

-- 
View this message in context: http://www.nabble.com/JasperReports-Plugin-datasource-tp20564743p20607037.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message