Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Federico Nardone

Greenhorn
+ Follow
since Mar 17, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Federico Nardone

NO!

I tryed change a subreport with a data-less and connection-less (only static text) and i see the same problem. It's not a data / connection problem. How can i solve this problem? The follow code, i use to subreport open, and in locale work good:

parameters.put("SUBREPORT_DIR", context.getRealPath(rptFolder + "//" + subpath + "//" + "rptFatCanFor_subFor.jasper"));
parameters.put("SUB_SUBREPORT_DIR", context.getRealPath(rptFolder + "//" + subpath + "//" + "rptFatCanFor_subFor_subFat.jasper"));

(...)

jp = JasperFillManager.fillReport(context.getResourceAsStream("/" + rptFolder + "/" + subpath + "/" + rptFileName + ".jasper"), parameters, Conn);

(...)
And now, the image of wrong report (in remote). Please help me! Thank...
Hi all!

My JSP Web application include simply report without subreport, and other report with subreport, all developed in Jasper Report with IReport tool. All simply report work perfectly in local and in remote, the other report (with subreport) work perfectly in local (see attach 1_right_local) but wrong in my remote server (see attach 2_wrong_remote). Why?

(very thank all! I send the 2 attach file. I thik, depending another properties or setting in IReport).

Archimede
Hi all, i'm italian developer and this is my first post.

In my JSP web application, developed with Eclipse, all work good. I have more and more report and i open this correct with the posted servlet and all work good. Now, yesterday i have a report with subreport create. If i open this from iReport IDE, all work good and i see the report (with subreport inside) correct. If i put the files report.jasper and subreport.jasper in report folder of my application, and i click on the "report open" button of my web page, i see not error message but a blank page.

I have choose the option "put the subreport path in a parameter SUBREPORT_DIR" and i give this parameter from serlvet, with same path of main report. I think, the cause of problem is subreport path.

Can help me?

Very thank,

Archimede