I have 2 JREDataSource. one for main report and another for subReport.
I fill main report dataSource with
jasperFillManager.fillReport(fileName,hashmap,
new JRBeanCollection(arrayListForMainReport));
in java program.
how can I fill subReport with arrayListForSubreport in java program?