-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lentes,

On 6/7/2011 11:36 AM, Lentes, Bernd wrote:
> first we tried to set the content-type in the <Head> ... </Head>
> section in the html file. That didn't work.

How did you do it? If you use <META HTTP-EQUIV="Content-Type"
CONTENT="text/html" />, it should override any Content-Type sent in the
HTTP response headers

> Our developers try now to use the
> response.setContentType("text/html"); method to configure the
> content-type in the HTTP-Header.

This is the proper way to do things. Using <META> does not hurt.

So... did it work?

> What i also found out is that you can use a defaulttype directive in
> your Apache configuration.

Yes, you can do that, but you should instead code your servlets to
return the proper Content-Type.

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

iEYEARECAAYFAk3uaisACgkQ9CaO5/Lv0PArOQCeLEPqHIn2ePvZNl84Eu6ywlaA
6HkAoJJqxDlbi6rGbttOjWyoO3Pi7XWs
=6EuJ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to