You can pass the bean to the report using JRBeanArrayDataSource or JRBeanCollectionDataSource or you can use Map parameters.
JasperPrint reportPrint = JasperFillManager.fillReport( this.getClass().getClassLoader().getResourceAsStream("/report.jasper"), new HashMap<String,Object>(), new JRBeanArrayDataSource(new YourBean[]{yourBean}));
or
Map<String,Object> params = new HashMap<String,Object>(); params.put("yourBean", yourBean); JasperPrint reportPrint = JasperFillManager.fillReport( this.getClass().getClassLoader().getResourceAsStream("/report.jasper"), params, new JREmptyDataSource());
source share