Chapter 5. Working with Other Datasources
As we mentioned previously, JasperReports allows us to use not only databases, but also many other sources of data to generate reports. In this chapter, we will learn how to use datasources other than databases to create our reports. As creating web-based reports is by far the most common use of JasperReports, most examples in this chapter will use the technique described in Chapter 3, Creating your First Report, to stream a PDF report to a web browser through the JasperRunManager.runReportToPdfStream()
method.
By the end of the chapter, we will be able to:
- Use empty datasources for reports that don't require an external datasource
- Use any implementation of
java.util.Map
as a datasource - Use arrays or collections ...
Get JasperReports 3.5 for Java Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.