Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD2C26C20 for ; Tue, 7 Jun 2011 18:24:07 +0000 (UTC) Received: (qmail 15211 invoked by uid 500); 7 Jun 2011 18:24:04 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15137 invoked by uid 500); 7 Jun 2011 18:24:03 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 15128 invoked by uid 99); 7 Jun 2011 18:24:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 18:24:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [146.107.3.101] (HELO mta01.helmholtz-muenchen.de) (146.107.3.101) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 18:23:58 +0000 Received: from XCH21.scidom.de (xch21.helmholtz-muenchen.de [146.107.8.221]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mta01.helmholtz-muenchen.de (Postfix) with ESMTP id 8B66931740A for ; Tue, 7 Jun 2011 20:23:08 +0200 (CEST) Received: from XCH11.scidom.de ([169.254.1.91]) by XCH21.scidom.de ([146.107.8.221]) with mapi; Tue, 7 Jun 2011 20:23:47 +0200 From: "Lentes, Bernd" To: 'Tomcat Users List' Date: Tue, 7 Jun 2011 20:23:46 +0200 Subject: RE: specifying the content-type Thread-Topic: specifying the content-type Thread-Index: AcwlPqJVprnf1x69QLGoxhNPtZBYrQAAFn4A Message-ID: <15785B7E063D464C86DD482FCAE4EBA50142696E11FE@XCH11.scidom.de> References: <15785B7E063D464C86DD482FCAE4EBA5014267AFB9E4@XCH11.scidom.de> <4DE54839.4080808@christopherschultz.net> <15785B7E063D464C86DD482FCAE4EBA5014267AFB9E7@XCH11.scidom.de> <4DE64850.8070700@christopherschultz.net> <15785B7E063D464C86DD482FCAE4EBA5014267AFB9F0@XCH11.scidom.de> <4DE68B3E.6060908@christopherschultz.net>,<4DE6B764.2090201@ice-sa.com> <15785B7E063D464C86DD482FCAE4EBA5014267CC8FF9@XCH11.scidom.de> <4DE7EC66.70605@ice-sa.com> <4DECDD13.8080804@christopherschultz.net> <4DECE24D.6040808@ice-sa.com> <15785B7E063D464C86DD482FCAE4EBA50142696E11F9@XCH11.scidom.de> <4DEE6A2B.1010600@christopherschultz.net> In-Reply-To: <4DEE6A2B.1010600@christopherschultz.net> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Christopher Schultz wrote: > > Lentes, > > On 6/7/2011 11:36 AM, Lentes, Bernd wrote: > > first we tried to set the content-type in the ... > > section in the html file. That didn't work. > > How did you do it? If you use CONTENT=3D"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#zeich= enkodierung (unfortunally only in german) says "Im Konfliktfall, also wenn der Webserver im HTTP-Header eine hiervon abwei= chende Angabe sendet, wird =FCblicherweise die Angabe des HTTP-Headers verw= endet.", which means that, if you have the META in the HTML-file and also t= he 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 does not hurt. > > So... did it work? > Using the META didn't work, the other way they'll try in the next days. I w= ill 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 > =3D6EuJ > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > Helmholtz Zentrum M=FCnchen Deutsches Forschungszentrum f=FCr Gesundheit und Umwelt (GmbH) Ingolst=E4dter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir=B4in B=E4rbel Brumme-Bothe Gesch=E4ftsf=FChrer: Prof. Dr. G=FCnther Wess und Dr. Nikolaus Blum Registergericht: Amtsgericht M=FCnchen HRB 6466 USt-IdNr: DE 129521671 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org