tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lentes, Bernd" <bernd.len...@helmholtz-muenchen.de>
Subject RE: AW: specifying the content-type
Date Tue, 07 Jun 2011 15:36:35 GMT

Hi,

first we tried to set the content-type in the <Head> ... </Head> section in the
html file. That didn't work.
Our developers try now to use the response.setContentType("text/html"); method to configure
the content-type in the HTTP-Header.
What i also found out is that you can use a defaulttype directive in your Apache configuration.
This sets the content-type of all what httpd is not able to recognize.
Further information: http://httpd.apache.org/docs/2.2/mod/core.html#defaulttype

I will keep you informed.


Bernd

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
Mime
View raw message