Hi all, I'm a newbie to JasperReports, in our application we are using JasperReports 1.3.4, Hibenate 3.1 and Spring 2.0.2. Basically, I like to know the pros and cons of having query in report template and beans. I ran some tests by referring the JasperReport samples. When I pass the datasource with only one bean as list to JasperFillManager, the report was successfully generated.. Here is the piece of code ************* CustomerDAO customerDao = (CustomerDAO) context.getBean("customerDAO"); List customerList = customerDao.findAll(); JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(customerList); .... .... JasperPrint jasperPrint = JasperFillManager.fillReport(CustomerReport.jasper", params, dataSource); ************* But, when I passed more than one beans as follows, it fails with "Error retrieving field value from bean"..here is the code snippet ************* CustomerDAO customerDao = (CustomerDAO) context.getBean("customerDAO"); List customerList = customerDao.findAll(); StudyDAO studyDao = (StudyDAO) context.getBean("studyDAO"); List studyList = studyDao.findAll(); ArrayList list = new ArrayList(); list.add(customerList); list.add(studyList); JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(list); .... .... JasperPrint jasperPrint = JasperFillManager.fillReport(CustomerReport.jasper", params, dataSource); ************* I would like to know, how to pass more than one beans into DataSource. From my understanding, the included beans in datasource is not reachable to the Report generator engine.. Can I have the query inside the bean instead of having in report template, and pass the query list as datasource. Please, give some tips what I am doing wrong..Or Am I in wrong track? Thanks in advance. Rameshkumar Ramasamy