Hi folks:
How I can send a Stream directly to a browser like in JSP?
In JSP
byte[] bytes =
JasperRunManager.runReportToPdf(
reportFile.getPath(),
parameters,
conn
);
response.setContentType("application/pdf");
response.setContentLength(bytes.length);
ServletOutputStream ouputStream = response.getOutputStream();
ouputStream.write(bytes, 0, bytes.length);
ouputStream.flush();
ouputStream.close();
As you can see is very straightforward, but how I can achieve this into
Tapestry?. AFAIK I should do a new Servlet (hivemind service, etc.) to
achieve this in a Tapestry way
Thanx
JQ
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]