ok,

        I think I'll follow the action + reader path. Do I have to implement a
custom reader ?

        I never want the PDF to exist as a file, I want to generate it and deliver
it on the fly.

        I'll give back any code I write.

thanks
Ricardo


-----Original Message-----
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 7 de Junho de 2002 14:30
To: [EMAIL PROTECTED]
Subject: RE: pdf output from java code


> From: Ricardo Trindade [mailto:[EMAIL PROTECTED]]
>
> Hi,
>
>       I'm using JasperReports, which generates PDF and other reports
from XML
> descriptions.
>       I'm able to run it inside cocoon, to produce reports that I save
to
> files.
> However I want to display them on-line.
>
>       My general question is, I want to run java code inside a XSP,
but
> instead
> of returning XML, that code generates binary info that I want to
stream to
> the browser.
>
>       Is XSP the way to go ?

No.

XSP must generate XML. You could generate XHTML with link to required
PDF or do a redirect with META or Javascript.

Better way will be to code an action, and have map:read nested into it
which will serve generated file.


Vadim


> thanks
> Ricardo
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to