xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Kearney <bkear...@avolent.com>
Subject RE: SAX Filter Output in Servlet
Date Tue, 08 Oct 2002 12:21:28 GMT
I think you need to out.close or out.flush. Which web container are you
running in?

-- bk


> -----Original Message-----
> From: Bruce McDougald [mailto:bmcdougald@hotmail.com]
> Sent: Monday, October 07, 2002 5:07 PM
> To: xalan-j-users@xml.apache.org
> Subject: Re: SAX Filter Output in Servlet
> 
> 
> > You need to get the output writer from the servlt response, 
> then set the
> > mime type and and content length on the response.
> >
> > -- bk
> >
> 
> Ok, then how do I (i.e. what call do I make) redirect the 
> output to the
> browser?
> 
> Do I say something like
> 
> servletResponse.setContentType("text/html; charset=UTF-8");
> PrintWriter out = servletResponse.getWriter();
> ...
> //Processing:
> //  Filter1: Parse XML
> //  Filter2: Transform XML using SAX
> ...
> out.print();
> 
> ??????
> 
> 

Mime
View raw message