I found what is the problem. In JasperReportsResult doExecute() method you call report in this way:
jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, stackDataSource); where : ValueStackDataSource stackDataSource = new ValueStackDataSource(stack, dataSource); But my dataSource is Connection, and I don't know what ValueStackDataSource accepts here. -- Milan 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. > >> 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. > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/JasperReports-Plugin-datasource-tp20564743p20607262.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]