> From: Ricardo Trindade [mailto:[EMAIL PROTECTED]] > > Hi, > > Wouldn't it still make more sense to use the action to generate it and > the > reader to display it ?
Do you want to buffer whole PDF in memory? What if it is huge? Reader will allow you to send parts of PDF as soon as this part is done. > I'm assuming actions can place stuff somewhere that's accessible to > readers... the pipeline ?? Request or session attributes. Vadim > thanks > Ricardo > > -----Original Message----- > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] > Sent: terca-feira, 11 de Junho de 2002 13:48 > To: [EMAIL PROTECTED] > Subject: RE: pdf output from java code > > > > From: Ricardo Trindade [mailto:[EMAIL PROTECTED]] > > > > ok, > > > > I think I'll follow the action + reader path. Do I have to > > implement a custom reader ? > > Not necessarily, except case below. > > > > I never want the PDF to exist as a file, I want to generate it > > and deliver it on the fly. > > In this case, instead of action, you will need to write custom reader > which will generate PDF and serve it without writing to the disk. > > Vadim > > > > 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/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>