tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alec Bau <>
Subject Re: why pop up the download dialog??
Date Wed, 20 Sep 2000 18:46:13 GMT
Try to generate an empty html page with a single <img
src="your-image-uri"> tag in a body. 

Weffen Chueng wrote:
> Hello ,
> I have developed a jsp page, it read a image from disk, and then send it to browser.
> in fact i want to show the image directly in browser, so i set the content type as
> "image/jpeg". In netsacpe it is okay, but in IE, it always popup the dialog.
> here is some solutions for the problem, but i failed:
> 1. <%@ page contentType="image/jpeg" %>  but still popup the dialog in ie;
> 2. response.setContentType("image/jpeg"); but still popup the dialog in ie;
> 3. response.setHeader("Content-type","image/jpeg"); but still popup the dialog;
> How to sovle the boring problem??? i guess there is no any problem in my coding...
> Is it tomcat's bug?
> --
> Best regards,
>  Weffen                

View raw message