Serving images
Hi,
I have some difficulty displaying images in a popup window. The server apparently sends them with a content type of utf-8 text, which leads to an exception page shown in the popup window instead of the picture.
In web.xml I checked the mime-mapping for the images:
<mime-mapping>
<extension>jpg</extension>
<mime-type>image/jpeg</mime-type>
</mime-mapping>
etc.
The html part is this:
<a href="#" onclick="window.open('${image.path}', '',
'status=no,width=${image.width},height=${image.hei ght}');">Show Picture</a>
How can I get the server to send the images with the proper Content-types?
Thanks,
Laszlo Borsos
|