title: how to pass jasper file path to subreport of subreport
body: <p>I am using iReport tool in conjunction with JasperReports 1.3.4.</p>
  
  <p>I have a master report, which contain two subreports. One of these subreports has an embedded subreport. All of the .jasper files reside in the same directory.</p>
  
  <p>iReport generated the parameter called <code>SUBREPORT_DIR</code>. The subreportExpression expresses the subreport filename as <code>![CDATA[$P{SUBREPORT_DIR} + "subreport.jasper"]</code>.</p>
  
  <p>Everything works great when the report is generated from within iReport. But, I have a small Java web appplication that I am trying to use to generate reports. I pass a <code>"SUBREPORT_DIR"</code> parameter to <code>JasperFillManager.fillReport(String sourceFileName, Map parameters, JRBeanCollectionDatasource)</code>. This <code>SUBREPORT_DIR</code> is set to the directory in which the master report is located.</p>
  
  <p>fillReport throws an exception:</p>
  
  <pre><code> net.sf.jasperreports.engine.JRException: Could not load object from location :
      .sub-subreport.jasper.
  </code></pre>
  
  <p>It appears that the first subreport is trying to process its <code>subreport(embedded subreport)</code>, but the <code>SUBREPORT_DIR</code> is not being resolved, or used properly to generate the name of the sub-subreport.</p>
  
  <p>Is there something I'm missing? How should this scenario be handled?</p>