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
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.Mapas a datasource
- Use arrays or collections ...