xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce McDougald" <bmcdoug...@hotmail.com>
Subject Re: SAX Filter Output in Servlet
Date Mon, 07 Oct 2002 23:07:15 GMT
> 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