Re: RequestDispatcher and sendfile()/java.nio

2008-10-23 Thread Filip Hanik - Dev Lists
Ronald Klop wrote: Hi, Does Tomcat 5.5 or maybe 6.0 use java.nio/sendfile() to send static content? So is it more prefered to use RequestDispatcher.forward(myfile) than copy a FileInputStream to ServletOutputStream by hand? I already have the copying part, but would like to know if it is worth

RequestDispatcher and sendfile()/java.nio

2008-10-23 Thread Ronald Klop
Hi, Does Tomcat 5.5 or maybe 6.0 use java.nio/sendfile() to send static content? So is it more prefered to use RequestDispatcher.forward(myfile) than copy a FileInputStream to ServletOutputStream by hand? I already have the copying part, but would like to know if it is worth the trouble to rewr