tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Atreya Basu <atr...@greenfieldresearch.ca>
Subject OT: Download Servlet question
Date Fri, 01 Aug 2003 02:02:31 GMT
Hello,

I have a slightly off topic question.

I have a servlet returns a file to a client.  It works for both MSIE and
Mozilla but for Mozilla it adds, '.jsp' to the end of the filename.

I set my headers:
		response.setContentType("application/octet-stream");
		response.setHeader("Content-Disposition","attachment;
filename="+fname);
		response.setHeader("Cache-Control","no-cache");
		response.setContentLength(available);

I am of course pre-compiling my JSP.  Any ideas anyone?

Thanks in advance.

_____________________________________
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




Mime
View raw message