users@javaserverfaces.java.net

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

From: Jon Miller <jemiller_at_uchicago.edu>
Date: Mon, 12 Mar 2007 15:46:35 -0500

I don't think that's the case because it works if I access the file
directly. It only gave me an error when accessing the page as a result of an
exception happening. I put a "throw new RuntimException()" in the
constructor of a managed bean to test it.

Jon

----- Original Message -----
From: "Ryan Lubke" <Ryan.Lubke_at_Sun.COM>
To: <users_at_javaserverfaces.dev.java.net>
Sent: Monday, March 12, 2007 3:22 PM
Subject: Re: Is it possible to use a JSF page as an error page?


> 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
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net
>