I managed to call fillReport with open Connection object, but I just get an
empty report page?! If I try to pass Connection object as dataSource in JR
result, then I get that exception that Connection is null and I see report
contents but with null values ?

--
Milan


newton.dave wrote:
> 
> --- On Thu, 11/20/08, Milan Milanovic wrote:
>> Yes, I understand. But who needs that?!
> 
> Lots of people. Many JR reports are simply well-formatted tabular data
> which is trivially represented by a list, potentially of composite
> objects. In fact that's all I've ever used it for over a half-decade.
> 
>> O.K. Anyway, what I need to change in order that JR result
>> accept Connection object ? Can I just say: Connection con =
>> stack.finValue("connection"); and then to call JR fillReport(...) 
>> with that object in JR result ?
> 
> No clue. AFAIK you could just pass in the connection object in the
> parameter map and access it in the report that way, I think someone at my
> current gig is doing that, but I don't know any of the details.
> 
> Again--if you're not using the result as intended I don't really see any
> benefit in using the result at all and it'd probably be just as simple to
> stream the PDF to the browser manually.
> 
> Or you could take the code from the S2.1 result, add a result
> configuration parameter for a connection, and do whatever you want with
> JR.
> 
> 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-tp20564743p20622753.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]

Reply via email to