> --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>
>> From: Milan Milanovic <[EMAIL PROTECTED]>
>> Subject: Re: JasperReports Plugin datasource
>> To: user@struts.apache.org
>> Date: Friday, November 21, 2008, 11:49 AM
>> Dave,
>>
A patch file would be better, but I can do it this way too.
--- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> From: Milan Milanovic <[EMAIL PROTECTED]>
> Subject: Re: JasperReports Plugin datasource
> To: user@struts.apache.org
> Date: Friday, November 2
Dave,
I put the fix: https://issues.apache.org/struts/browse/WW-2884
https://issues.apache.org/struts/browse/WW-2884 .
Please check it if I did it correctly.
--
Milan
newton.dave wrote:
>
> --- On Fri, 11/21/08, Milan Milanovic wrote:
>> O.K. Where can I do this ?
>
> On the S2 JIRA at: ht
--- On Fri, 11/21/08, Milan Milanovic wrote:
> O.K. Where can I do this ?
On the S2 JIRA at: https://issues.apache.org/struts/secure/Dashboard.jspa
(I think)
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
Dave,
newton.dave wrote:
>
>> I added connection param to the JR result and now it works perfectly
>> :-)! If connection is found, dataSource is not used.
>
> Glad to hear it. If you want, you could create a patch and a JIRA and I'll
> apply it to the JR result and finish some of my earlier
--- On Fri, 11/21/08, Milan Milanovic wrote:
> I found what is the problem. Query that JR report run returned no rows,
> so it show it like empty.
[OT] There's a JR parameter for that, btw, so if it's a report with no data
elements it'll still print out something.
> I added connection param to t
Hi Dave,
I found what is the problem. Query that JR report run returned no rows, so
it show it like empty. I added connection param to the JR result and now it
works perfectly :-)! If connection is found, dataSource is not used.
Great job, thanks!
--
Milan
newton.dave wrote:
>
> --- On Fri,
--- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> 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
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.
n property as the
> data source. If you're not going to do that then the JR result may not be
> of much benefit to you.
>
> Dave
>
>
> --- On Thu, 11/20/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>
>> From: Milan Milanovic <[EMAIL PROTECTED]>
>&g
Milanovic <[EMAIL PROTECTED]> wrote:
> From: Milan Milanovic <[EMAIL PROTECTED]>
> Subject: Re: JasperReports Plugin datasource
> To: user@struts.apache.org
> Date: Thursday, November 20, 2008, 1:25 PM
> I found what is the problem. In JasperReportsResult
> doExecut
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 dataSourc
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 a
--- 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 Co
Dear Dave,
It works now. I get report, but with null values. In console I get this:
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 w
Yep, I have struts2-jasperreports-plugin-2.0.11.1.jar in my
project/WEB-INF/lib. I don't know why it doesn't recognize those classes.
I'll check this.
newton.dave wrote:
>
> --- On Thu, 11/20/08, Milan Milanovic wrote:
>> when I copied this class to my project, it say that I
>> don't have these
--- On Thu, 11/20/08, Milan Milanovic wrote:
> when I copied this class to my project, it say that I
> don't have these two classes: ValueStackDataSource and
> ValueStackShadowMap. Should I copy them too ?
Hmm, maybe so--the work I did on this was awhile ago so I don't really recall.
Do you have
Dave,
when I copied this class to my project, it say that I don't have these two
classes:
ValueStackDataSource and ValueStackShadowMap. Should I copy them too ?
--
Regards, Milan
newton.dave wrote:
>
> --- On Thu, 11/20/08, Milan Milanovic wrote:
>> Great Dave! Thanks very much. This is very
--- On Thu, 11/20/08, Milan Milanovic wrote:
> Great Dave! Thanks very much. This is very helpful for anyone who
> deals with business applications that includes S2 and JR.
Keep me posted and let me know if there are other JR needs.
Dave
Great Dave! Thanks very much. This is very helpful for anyone who deals with
business applications that includes S2 and JR.
I'll try to use this solution.
--
Regards, Milan
newton.dave wrote:
>
> --- On Thu, 11/20/08, Milan Milanovic wrote:
>> O.K. Thank you. Please, send me that class or a l
--- On Thu, 11/20/08, Milan Milanovic wrote:
> O.K. Thank you. Please, send me that class or a link to
> S2.1 source where can I find it.
Use [1] and cut-and-paste, or follow the standard checkout process and copy it
into your project.
> Just one more thing, how can I include this class in my
>
Dear Dave,
O.K. Thank you. Please, send me that class or a link to S2.1 source where
can I find it.
Just one more thing, how can I include this class in my Struts 2.0.11.1
installation ? Please don't tell me that I need to checkout Struts source
and recompile it with new class ?
--
Best regards
Actually, just use the S2.1 jasper result, IIRC I didn't do anything in
particular for the S2.1 version, and (believe it or not) it's cleaner than the
version I would have emailed you--our in-house version is structurally quite
different, the S2.1 version doesn't have the same extreme changes (a
--- On Thu, 11/20/08, Milan Milanovic wrote:
> Does ANYONE know how to pass parameters to report in Struts
> 2 when JasperReportsResult is used ?!
I will send you a sanitized version of my custom JR result, or you can just
look in the S2.1 source where the patch has been applied.
Dave
Does ANYONE know how to pass parameters to report in Struts 2 when
JasperReportsResult is used ?!
Milan Milanovic wrote:
>
> Hi,
>
> I want to use JasperReports from my Struts 2 app. But I have a problem
> with datasource param. I want to pass Connection object (created or if
> possible cla
Dave,
what do you recommend me to do ? I just want to do the MOST SIMPLE thing,
like I did many times in plain Java apps, to create JasperReports object, to
pass to it connection and parameters and to show it ?
--
Thx, M.
newton.dave wrote:
>
> --- On Tue, 11/18/08, Milan Milanovic wrote:
>>
Dear Dave,
I'm not sure how to use this. Can you please show an example ?
--
Milan
newton.dave wrote:
>
> --- On Tue, 11/18/08, Milan Milanovic wrote:
>> I want to use JasperReports from my Struts 2 app. But I
>> have a problem with datasource param. I want to pass
>> Connection object (crea
Dear Dave,
as far as I can see, I can pass Connection object as dataSource parameter
from my action class ? Altough I don't know how to pass dataSource bean from
Spring configuration. But, it seems that JR result type use parameters from
value stack that can be used directly in report (without pa
Dear Dave,
as far as I can see, I can pass Connection object as dataSource parameter
from my action class ? Altough I don't know how to pass dataSource bean from
Spring configuration. But, it seems that JR result type use parameters from
value stack that can be used directly in report (without pa
Dear Dave,
as far as I can see, I can pass Connection object as dataSource parameter
from my action class ? Altough I don't know how to pass dataSource bean from
Spring configuration. But, it seems that JR result type use parameters from
value stack that can be used directly in report (without pa
Dear Dave,
as far as I can see, I can pass Connection object as dataSource parameter
from my action class ? Altough I don't know how to pass dataSource bean from
Spring configuration. But, it seems that JR result type use parameters from
value stack that can be used directly in report (without pa
Dear Dave,
I'm not sure how to do this. Please, give me an example.
--
Thank you in advance, Milan
newton.dave wrote:
>
> --- On Tue, 11/18/08, Milan Milanovic wrote:
>> I want to use JasperReports from my Struts 2 app. But I
>> have a problem with datasource param. I want to pass
>> Connect
--- On Tue, 11/18/08, Milan Milanovic wrote:
> I want to use JasperReports from my Struts 2 app. But I
> have a problem with datasource param. I want to pass
> Connection object (created or if possible
> class="org.springframework.jdbc.datasource.DriverManagerDataSource"...>
> spring bean) as a p
34 matches
Mail list logo