Thanks Jason for the info I'll buy the book.

Bye

JQ

Jason Suplizio escribió:
How I did it:

1- used a ServiceLink component to explicitly invoke the hivemind service
2- added a service point id and contribution elements to hivemodule.xml to
provide the mapping to the correct service
3- created the service class (the same one configured in the hivemodule.xml)
that performs the io.

Kent's book is a life saver for this (Chapter 8).
Jason

On 2/23/06, Ron Piterman <[EMAIL PROTECTED]> wrote:
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]






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

Reply via email to