requestcycle.get().getresponse().getoutputstream() -igor
On Thu, Jan 15, 2009 at 1:54 PM, novotny <[email protected]> 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 > > -- > View this message in context: > http://www.nabble.com/access-ServletOutputStream-in-wicket-tp21487704p21487704.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
