Jasper report pdf servlet example

Create a JasperReports exporter for a specific output format, which will be used to render the report to the HTTP response.

Return whether to use a java.io.Writer to write text content to the HTTP response.

Methods inherited from class org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsSingleFormatView

Methods inherited from class org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView

Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView

Methods inherited from class org.springframework.web.servlet.view.AbstractView

Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport

Methods inherited from class org.springframework.context.support.ApplicationObjectSupport

Methods inherited from class java.lang.Object

Constructor Detail

JasperReportsPdfView

public JasperReportsPdfView()

Method Detail

createExporter

protected JRExporter createExporter()
Description copied from class: AbstractJasperReportsSingleFormatView

Create a JasperReports exporter for a specific output format, which will be used to render the report to the HTTP response. The useWriter method determines whether the output will be written as text or as binary content.

useWriter

protected boolean useWriter()
Description copied from class: AbstractJasperReportsSingleFormatView

Return whether to use a java.io.Writer to write text content to the HTTP response. Else, a java.io.OutputStream will be used, to write binary content to the response.