title: Custom Class for JasperReports field
body: <p>I would like to create a report with a custom class as follows:</p>
  
  <pre><code>public class Class1 {
    String cl1_f1;
    String cl1_f2;
  }
  
  public class Class2 {
     String cl2_f1;
     String cl2_f2;
     Class1 cl1_ob1;
  }
  </code></pre>
  
  <p>Now I pass <strong>Class2</strong> in the report through fields and JRBeanCollectionDataSource.</p>
  
  <pre><code>&lt;subDataset name="myitems"&gt;
      &lt;field name="cl2_f1" class="java.lang.String"/&gt;
      &lt;field name="cl2_f2" class="java.lang.String"/&gt;
      **&lt;field name="cl1_ob1" class="Class2"/&gt;**  
  &lt;/subDataset&gt;
  </code></pre>
  
  <p>For the third parameter, I would like to mention one of its fields. For example: <code>cl1_ob1.cl1_f1</code>.</p>
  
  <p>How can I accomplish this?</p>