Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 9893 invoked from network); 18 Sep 2004 14:38:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Sep 2004 14:38:31 -0000 Received: (qmail 52887 invoked by uid 500); 18 Sep 2004 14:37:59 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 52860 invoked by uid 500); 18 Sep 2004 14:37:59 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 52845 invoked by uid 99); 18 Sep 2004 14:37:59 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [66.180.237.138] (HELO mail.globalmentor.com) (66.180.237.138) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 18 Sep 2004 07:37:57 -0700 Received: from [192.168.1.101] (adsl-68-127-137-254.dsl.pltn13.pacbell.net [68.127.137.254]) by mail.globalmentor.com (8.11.0/8.11.0) with ESMTP id i8IDOr518319 for ; Sat, 18 Sep 2004 06:24:53 -0700 Message-ID: <414C483F.4080704@globalmentor.com> Date: Sat, 18 Sep 2004 07:37:51 -0700 From: Garret Wilson Organization: GlobalMentor, Inc. User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: valid XHTML 1.1, Tomcat, text/xml, and @!&* IE References: <414B8786.5060402@globalmentor.com> <1095476613.19739.6.camel@phoenix> <414BC539.1010204@globalmentor.com> <1095488821.23587.6.camel@phoenix> <20040918072721.GA6407@mongers.org> In-Reply-To: <20040918072721.GA6407@mongers.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Morten Liebach wrote: > The nicest solution is to follow the tips in this article: > > http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html > > Basically , if the HTTP_ACCEPT variable contains the string > "application/xhtml+xml" set MIME-Type to that, otherwise set it to > "text/html". > > And no, I have no idea how you do that in Java/JSP, I'm too much of a > newbie yet, but eventually I'll have to do something like that myself. Thanks for the nice tip. It seems like this checking is something you would do on the server---Tomcat. You could probably get it done somewhere in the internals of the JavaServer Faces implementation, too. I found in web.xml and tried setting the "faces" extension to return text/html. No luck. Then I tried the "jsp" extension. No luck there, either. The _Java� Servlet Specification Version 2.4_ is no help. Neither is _Professional Apache Tomcat 5_. Can Tomcat handle this? Is there something I can put in my JSF page to handle this? Rather than placing hacks throughout my pages, though, I'd like to just tell Tomcat to serve text/html for now---how do I do that? Garret --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org