Massimiliano Cuccia wrote: > I want to produce a pdf in a jsp, so I have a string fo that contains the fo > instructions ... > I had found this code to output the pdf directily in the browser > Driver driver = new Driver(new InputSource(new > StringBufferInputStream(fo)), response.getOutputStream()); > > and it's OK, there is another way to do that task? > I don't want to pass the "response.getOutputStream()" actual parameter ... > any ideas??
You should not use FOP from an JSP in order to generate PDF. PDF may be binary, which could confuse the output (which assumes the output is *character* data). Use a servlet, and generate the FO with XSLT, as advised, or check out Cocoon. J.Pietschmann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]