private void writeReponse(final HttpServletRequest _request, final HttpServletResponse _response, final JasperPrint _jasperPrint, final ActionInvocation _invocation) throws JRException, IOException {
setResponseHeaders(_response, _invocation);
final HashMap parameters = new HashMap(getExportParams(_invocation));
parameters.put(JRHtmlExporterParameter.IMAGES_URI, _request.getContextPath() + imageServletUrl);
final ReportWriter reportWriter = ReportWriterFactory.getInstance().getReportWriter(_jasperPrint, documentFormat, parameters);
reportWriter.writeTo(_response);
}
private Map getExportParams(final ActionInvocation _invocation) {
Map params = (Map)conditionalParse(exportParams, _invocation, Map.class);
if (params == null) {