tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terry Orechia" <Torec...@comcast.net>
Subject Re: IE6 and download problem using tomcat java servlet
Date Thu, 16 Sep 2004 14:21:45 GMT
Thanks for your help.   Your suggestions did not seem to make any 
difference.   However,  I got the application to work when making the 
request from the http  request <a HREF="http://.../download?fileid=353">. 
This same request did not work when putting the http request in the address 
field of explorer and hitting go (except after the initial login).   I 
suspect it is due to security restraints configured in tomcat server, but 
not exactly sure.

Thanks,
Terry



----- Original Message ----- 
From: "Brantley Hobbs" <bhobbs@itos.uga.edu>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, September 14, 2004 10:47 AM
Subject: RE: IE6 and download problem using tomcat java servlet


I should also have pointed out that at that point, you can keep your
.jpeg extension or whatever.  The browser could care less what the file
name is.  It simply looks at the MIME type.

B.

> -----Original Message-----
> From: Brantley Hobbs
> Sent: Tuesday, September 14, 2004 10:44 AM
> To: Tomcat Users List
> Subject: RE: IE6 and download problem using tomcat java servlet
>
> > I am having a problem downloading a jpeg file from a tomcat java
> servlet
> > to Internet Explorer 6.0.  I have changed the file extension to
"zzz"
> to
> > force the download prompt.     If I restart tomcat(version 4.1.x),
the
>
> While this is a working solution, it's not ideal.  To do this
> seamlessly, you should set your output headers to a different mime
type.
> "application/octet-stream" works well for provoking a download dialog.
>
> Here's an example:
> response.setContentType("application/octet-stream");
>
>
> B.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message