HttpSession session = request.getSession();
session.setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, _jasperPrint);
session.setAttribute("net.sf.jasperreports.j2ee.jasper_print", _jasperPrint);
//write generated HTML to the http-response (the one you got from the helper)
reportWriter.writeTo(response);
}
}