> 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]>