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: specifying the content-type
Date Wed, 01 Jun 2011 17:07:43 GMT
Martin Kuen wrote:
>
> Hi Bernd,
>
> I think your colleagues forgot/didn't want to set the
> content-type in the servlet(-code)?

Yes, i also think they forgot. They are Bioinformatics and don't know much about protocols
and web servers.

>
> text/plain is apache default for anything it doesn't know (if I recall
> correctly)
> If no content-type is set by the servlet, no content-type is
> delivered.
> No content-type set by the servlet causes *your browser* to
> start guessing.
> text/html is a pretty solid guess for a browser.
>
> Often a servlet can only generate one kind of content-type.
> If that's the case there's no point in making it configurable.
>
> However, you could use mod_headers to have this set/added by
> apache . . .
>

I will check this out.

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