Try the xml-version/doctype thing.  The first one.  This is just a
best guess for me.


On Sat, 20 Nov 2004 12:15:53 -0500, Peter Cheung <[EMAIL PROTECTED]> wrote:
> I tried what you suggested, but it was still complaining about the
> content type and the encoding. The following is my code snippet:
> 
> <%@ page session="false"%>
> <%@ page language="java" contentType="text/html;charset=utf-8"
> pageEncoding="utf-8" %>
> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"; %>
> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"; %>
> <%@ taglib prefix="tiles" uri="http://jakarta.apache.org/struts/tags-tiles"; %>
> 
> Tks in advance.
> 
> On Thu, 18 Nov 2004 17:41:09 -0600, Heath Borders-Wing
> 
> 
> <[EMAIL PROTECTED]> wrote:
> > Either this:
> > <?xml version="1.0" encoding="ISO-8859-1" ?>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
> >
> > or this:
> >
> > <%@ page
> > language="java"
> > contentType="text/html; charset=ISO-8859-1"
> > pageEncoding="ISO-8859-1"
> > %>
> >
> > On Thu, 18 Nov 2004 18:38:21 -0500, [EMAIL PROTECTED]
> >
> >
> > <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Sorry Heath, not exactly sure what you mean, could you maybe give an 
> > > example
> > > ?
> > >
> > > Thanks
> > >
> > >
> > > Mark C�t�
> > > Concepteur/Architecte technologique
> > > TI - Projet SIC
> > > TI - Libre Service Web
> > > 1250 Ren� L�vesque Ouest, 11e �tage
> > > Montr�al (Qu�bec)
> > > 514.879.4100 x6752
> > >
> > > -----Message d'origine-----
> > > De : Heath Borders-Wing [mailto:[EMAIL PROTECTED]
> > > Envoy� : jeudi 18 novembre 2004 18:36
> > > � : MyFaces Discussion
> > > Objet : Re: Why does HtmlResponseWriterImpl keep complaining ?
> > >
> > >
> > >
> > > Yeah, we used to have both of those problems.  We supply a content type 
> > > and
> > > character encoding with our JSPs in a scriptlet.
> > >
> > >
> > > On Thu, 18 Nov 2004 18:32:57 -0500, [EMAIL PROTECTED]
> > > <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Kalle,
> > > >
> > > >     I tried what you did, and it seems to suppress the caracter
> > > > encoding complaint, but there still remains the content type.
> > > > And you cannot set the content type anywhere in ServletRequest or
> > > > HttpServletRequest.
> > > >
> > > > Does anyone else have this problem ?
> > > >
> > > >
> > > > Mark
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > De : Korhonen, Kalle [mailto:[EMAIL PROTECTED] Envoy� : mercredi 17
> > > > novembre 2004 10:37 � : MyFaces Discussion Objet : RE: Why does
> > > > HtmlResponseWriterImpl keep complaining ?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > I would think that it is because JSF lifecycle has already started and
> > > > it check the headers before page parsing has started. If you set them
> > > > yourself in the filter, you can suppress the errors. We did it for
> > > > character encoding and didn't worry about setting the content type at 
> > > > all
> > > just yet.
> > > >
> > > > Kalle
> > > >
> > > >
> > > > ________________________________
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, November 17, 2004 5:20 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Why does HtmlResponseWriterImpl keep complaining ?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Anyone know why I constantly get the following information logged to
> > > > my console when executing a JSF app ?
> > > >
> > > > [04-11-17 08:12:45:859 EST] 5c005c HtmlRenderKit I
> > > > net.sourceforge.myfaces.renderkit.html.HtmlRenderKitImpl No content
> > > > type list given, creating HtmlResponseWriterImpl with default content
> > > type.
> > > >
> > > > [04-11-17 08:12:45:869 EST] 5c005c HtmlResponseW I
> > > > net.sourceforge.myfaces.renderkit.html.HtmlResponseWriterImpl No
> > > > content type given, using default content type text/html
> > > >
> > > > [04-11-17 08:12:45:869 EST] 5c005c HtmlResponseW I
> > > > net.sourceforge.myfaces.renderkit.html.HtmlResponseWriterImpl No
> > > > character encoding given, using default character encoding ISO-8859-1
> > > >
> > > >
> > > >
> > > > This is in the header of each of my JSP pages:
> > > >
> > > > <head><meta http-equiv="content-type" content="text/html;
> > > > charset=iso-8859-1"></head>
> > > >
> > > >
> > > >
> > > > Thanks in advance,
> > > >
> > > > Mark
> > >
> > >
> > > --
> > > If you don't have a GMail account, I probably have 5 invites.  Just ask!
> > > -Heath Borders-Wing
> > > [EMAIL PROTECTED]
> >
> > --
> > If you don't have a GMail account, I probably have 5 invites.  Just ask!
> > -Heath Borders-Wing
> > [EMAIL PROTECTED]
> >
> 


-- 
If you don't have a GMail account, I probably have 5 invites.  Just ask!
-Heath Borders-Wing
[EMAIL PROTECTED]

Reply via email to