cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Trindade" <Ricardo.Trind...@myrealbox.com>
Subject RE: pdf output from java code
Date Tue, 11 Jun 2002 10:25:26 GMT
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:vadim.gritsenko@verizon.net]
Sent: sexta-feira, 7 de Junho de 2002 14:30
To: cocoon-users@xml.apache.org
Subject: RE: pdf output from java code


> From: Ricardo Trindade [mailto:Ricardo.Trindade@myrealbox.com]
>
> 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>



---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message