>
>
> Andre Warnier wrote:
>
> >
> > On 6/1/2011 1:04 PM, Lentes, Bernd wrote:
> >>> Okay. Can you post your servlet code, then?
> >> I have to ask our developers.
> >
> > Okay.
> >
> >>> There is no default Content-Type for HTTP responses, so
> >>> getting a response directly from Tomcat might cause the
> >>> browser to auto-detect content.
> >> That's what i also believe.
> >
> > Sounds like Martin Kuen and I had the same idea moments apart.
> >
> >>> You might want to properly set the Content-Type header in
> >>> your servlet code if you aren't already doing it.
> >>>
> >> How can i do that ?
> >
> > You'd have to modify the code like this:
> >
> >   response.setContentType("text/html");
> >
> > (or whatever content type is appropriate in the situation).
> >

for the sake of completeness: setting the contenttype using this method worked 
fine.

Thanks for your help.


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

Reply via email to