private JRDataSource createDataSource() { List<ReportData> datasource = new ArrayList<ReportData>(); ReportData data = new ReportData(); List<String> comments = new ArrayList<String>(); comments.add("comment1"); comments.add("comment2"); comments.add("comment3"); data.setItem("Book"); data.setQuantity(new Integer(10)); data.setComments(comments); datasource.add(data); data = new ReportData(); comments = new ArrayList<String>(); comments.add("comment1"); comments.add("comment2"); data.setItem("Notebook"); data.setQuantity(new Integer(20)); data.setComments(comments); datasource.add(data); return new JRBeanCollectionDataSource(datasource); }