title: Jasper Sub Report not shown in PDF
body: <p>I am having problem with Jasper Sub Reports. I have a report template that has a subreport; in main report I have some parameters that should be available in subreport too. </p>
  
  <p>Main report parameter is :</p>
  
  <pre><code>&lt;parameter name="mainParameter" class="java.lang.Object"/&gt;
  </code></pre>
  
  <p>Subreport report parameter is :</p>
  
  <pre><code>&lt;parameter name="mainParameter" class="java.lang.Object"/&gt;
  </code></pre>
  
  <p>And I provided parameters of master report for sub report like this:</p>
  
  <pre><code>&lt;subreport isUsingCache="false"&gt;
      &lt;reportElement x="0" y="1450" width="200" height="50" isRemoveLineWhenBlank="true"/&gt;
      &lt;subreportParameter name="mainParameter"&gt;
          &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{mainParameter}]]&gt;&lt;/subreportParameterExpression&gt;
      &lt;/subreportParameter&gt;
      &lt;subreportExpression class="java.lang.String"&gt;&lt;![CDATA["subReport.jasper"]]&gt;&lt;/subreportExpression&gt;
  &lt;/subreport&gt;
  </code></pre>
  
  <p>Both the JRXML's were compiling properly, no issues with that. But I'm not able to get the Sub report data in generated pdf file.</p>