You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Thorbjoern Ravn Andersen <tr...@mrbean.stibo.dk> on 2000/10/27 14:14:27 UTC
Problem with PrintWriter/Output stream using Xalan in JSP
Hi.
I have a problem in implementing the Pipe example from Xalan-J 1.2 in a
JSP page. Right now the primary change is that I would like the
following action to be taken, to allow the output from the two-processor
stage (communicating by SAX events) to be sent to the JSP output.
The following line fails:
processor2.setDocumentHandler( stylesheet2.getSAXSerializer( out));
where out is the standard object for printing output. The error
message is
Incompatible type for method. Can't convert java.io.PrintWriter to
java.io.OutputStream.
Apparently it is easy to get a PrintWriter to an OutputStream but not
the other way around, and this is rather muddy for me.
Could a kind soul hint me towards the correct way to have Xalan send its
output to a JSP-page?
Thanks in advance,
--
Thorbjørn Ravn Andersen "...sound of... Tubular Bells!"
http://bigfoot.com/~thunderbear