The chapter starts with integrating JasperReports with Hibernate by writing embedded report queries in the Hibernate Query Language (HQL). JasperReports with HQL queries is similar to reports containing SQL queries except that the language attribute of the<queryString>
element must be set to hql
. Next, we saw how to integrate JasperReports with the Spring framework by taking advantage of Spring's built-in JasperReports integration.
The chapter also dealt with JavaServer Faces and JasperReports integration and illustrated how to write backing beans that fill a report and display it in the browser. Finally, the chapter illustrated the integration of JasperReports with Struts by explaining how to write action classes that fill a report and display it in the browser.