Two Laptop Bag
The moose likes Other Open Source Projects and the fly likes My first post (thank): report with subreport open Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "My first post (thank): report with subreport open" Watch "My first post (thank): report with subreport open" New topic

My first post (thank): report with subreport open

Federico Nardone

Joined: Mar 17, 2009
Posts: 4
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,


Anthony Alford

Joined: Mar 24, 2009
Posts: 2
You have probably already figured this one out by now, but anyway. Did you set your Subreport Expression in your main.jrxml? I'm using an older version of iReport and it is a right click on the area taken up by the added subreport, select properties, select Subreport(Other) and make sure you have a Subreport Expression. Mine is $P{contextRoot} + "//reports//RFIoverdue.jasper". You may want to print out your parameter $P{SUBREPORT_DIR} in a text field to make sure the slashes are correct. Pretty sure that's what I did along time ago, now I use pretty much the same format over and over.

I agree. Here's the link:
subject: My first post (thank): report with subreport open
jQuery in Action, 3rd edition