Hi,
look at RequestCycle#setRequestTarget and ResourceStreamRequestTarget
novotny wrote:
Hi,
I'm learning Jasper to create/display a PDF when a link is clicked and the
template code I have looks like:
ServletOutputStream servletOutputStream = response.getOutputStream();
InputStream reportStream =
getServletConfig().getServletContext().getResourceAsStream("/reports/FirstReport.jasper");
JasperRunManager.runReportToPdfStream(reportStream,
servletOutputStream, new HashMap(), new
JREmptyDataSource());
response.setContentType("application/pdf");
servletOutputStream.flush();
servletOutputStream.close();
How should I acccess the servlet objects, or is there a better way to do
this that is the "wicket way(tm)"?
Much appreciated, Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org