users@javaserverfaces.java.net

Re: Is it possible to use a JSF page as an error page?

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Mon, 12 Mar 2007 13:22:42 -0700

Jon Miller wrote:
> I just realized that custom error pages don't seem to work even with a
> .jspx with IE. I tried it with both IE 6 and 7. It works fine with
> Firefox. My current guess is that Tomcat is still returning a 500 and
> IE just displays the default page for that error. This is different
> than the problem that I had when trying to use a JSF page as an error
> page.
How do you define your JSF error page?

JSP documents by default, at least if I recall correctly, will set the
content type to text/xml. It could be the IE doesn't like that.
You could try forcing the content type to text/html.


>
> Jon
>
> ----- Original Message ----- From: "Jon Miller" <jemiller_at_uchicago.edu>
> To: "JavaServer Faces Users List" <users_at_javaserverfaces.dev.java.net>
> Sent: Monday, March 12, 2007 2:28 PM
> Subject: Is it possible to use a JSF page as an error page?
>
>
>> Hi all,
>>
>> Does anyone know if it's possible to use a JSF page as an error page?
>> I'm having some problems getting it to work. It seems to work fine if
>> it's just a JSP.
>>
>> Jon
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
>> For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net
>