Re: disabling sitemesh programatically
Roni <[email protected]> Mon, 22 May 2006 08:23:55 CDT
| Newsgroups | gmane.comp.web.sitemesh.general,gmane.comp.java.com4j.user |
|---|---|
| Message-ID | <26647371.1148304326733.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
This is not true. I can see sitemesh decorating my PDF file. This is way I basically do in the Action
byte[] bytes = null;
bytes = JasperExportManager.exportReportToPdf(originalPrint);
response.reset();
response.setContentType("application/pdf");
response.addHeader("Content-Disposition","attachment; filename=CallDurationBagProfile.pdf");
response.setContentLength(bytes.length);
response.getOutputStream().write(bytes, 0, bytes.length);
response.getOutputStream().flush();
response.getOutputStream().close();
return null;
Maybe I'm setting something wrong. Do you have any ideas where to look?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=31440&messageID=61610#61610
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]