tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Eugelink <T.Eugel...@KnowledgePlaza.nl>
Subject Re: file vs servlet through a filter
Date Tue, 04 Nov 2008 09:37:51 GMT
Right. Sorry. Tomcat 6.0.14, Java 1.6.0_03, WindowsXP SP3.

It gets even better: if the servlet copies the file's contents to its 
response, both have 1766 bytes returned. One gives an invalid PDF, the 
other not.

        IOUtil.copy(new FileReader(new File("C:\\...\\test.xslfo.xml")), 
response.getWriter());


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message