title: having trouble with two datasets using javabean as datasource in jasper report
body: <p>In my main report I am having table in detail band with its own separate dataset. Now I am using Javabeans as datasource for both the main report's dataset and for table's dataset as well. The situation is like</p>
  
  <p>There are two different ArrayList of beans. One is for Main report and the other is for table. </p>
  
  <p>I am passing table's ArrayList as a parameter to the main report using map.put() . 
  And in the Edit Table Datasource I am writing this expression.</p>
  
  <pre><code>new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{List})
  </code></pre>
  
  <p>where $P{List}is a parameter of main report. You can understand it by $P.</p>
  
  <p>Is that a right approach?  </p>