[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: 3 Extra cr-lf downloading files

Raist_Majere do-not-reply at jboss.com
Sat Jun 30 18:10:54 EDT 2007


Your problem is due to using a JSP. Between the JSP "directives" you have CRLF that is send to the client, that is, between <%@ page import="java.io.File, 
  | java.io.InputStream, 
  | java.io.FileInputStream, 
  | java.io.OutputStream"%> 
  |  and <%@ page session="false" %> you have a CRLF, as well as in other places... You could take them off, but you will get one CRLF (the last one)... So it's not a good practice to download files through JSP; better use a Servlet or you will get corrupted data most of the times.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059410#4059410

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059410



More information about the jboss-user mailing list