you do it by implementing an IEngineService, and contributing to the tapestry.services.ApplicationServices configuration point :
see
http://jakarta.apache.org/tapestry/UsersGuide/upgrade.html#upgrade.service

and look for the AssetService or PageService classes as examples.

Cheers,
Ron


Jorge Quiroga wrote:
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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to