tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Image problem on tomcat
Date Thu, 28 Jun 2007 16:26:24 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yuval,

Zilberstein Yuval wrote:
> I am trying to display the image on a special mobile browser, by
> requesting it from a jsp on the tomcat server, But the browser can not
> display it.

Does this image render properly on a "normal" web browser (like MSIE,
ff, Safari, Opera, etc.)?

> When I am trying to display it from another apache server it works ok.

Do you mean that it renders properly on the mobile device when served by
Apache httpd? If the only difference is the server, it's possible that
Tomcat doesn't send the correct content type, and the mobile browser is
refusing to interpret the file as a CWSIS file.

Use a regular browser to pull-up that image served by Tomcat in one
window and Apache httpd in another. Check the HTTP headers to see if the
content-type headers are different. If Tomcat sends the wrong
content-type, you can probably just configure Tomcat to use the proper
type with files that end in a particular file extension (like ".cwsis").

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGg+Ev9CaO5/Lv0PARAoRDAJ9ZMX78I7o2a6NRC5CgDW7SGIz/5QCeMd/z
op4c3zrCaR50RR+t6qkTwpo=
=tK3i
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message