In previous chapters, we have seen several examples of web-based applications generating reports and streaming them to the browser. In those examples, we have been using 'raw' servlets to generate reports. Most modern Java web-based applications are written using one of several web application frameworks. In this chapter, we will discuss how to integrate JasperReports with three of the most popular Java web application frameworks, Spring Web MVC, JavaServer Faces, and Struts.
In addition to using a web application framework, most modern Java projects use an Object‑Relational Mapping tool for database access. In this chapter, we will cover how to generate reports with database data obtained using Hibernate, the most popular Java Object-Relational Mapping tool.
Please note that this chapter assumes some familiarity with the above frameworks. Feel free to skip to the sections that apply to frameworks used...