Christopher Schultz wrote:
>
> 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

Yes, we used this. But 
http://de.selfhtml.org/html/kopfdaten/meta.htm#zeichenkodierung (unfortunally 
only in german) says
"Im Konfliktfall, also wenn der Webserver im HTTP-Header eine hiervon 
abweichende Angabe sendet, wird üblicherweise die Angabe des HTTP-Headers 
verwendet.", which means that, if you have the META in the HTML-file and also 
the content-type in the HTTP-Header, mostly the HTTP-Header "wins".

>
> > 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?
>

Using the META didn't work, the other way they'll try in the next days. I will 
inform you.

> > 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
>
>

Helmholtz Zentrum München
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
Geschäftsführer: Prof. Dr. Günther Wess und Dr. Nikolaus Blum
Registergericht: Amtsgericht München HRB 6466
USt-IdNr: DE 129521671

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

Reply via email to