myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Hong" <anthony.bin.h...@gmail.com>
Subject Re: How to redirect to an error page when JSF page failed
Date Sat, 27 May 2006 16:06:47 GMT
Hi Julian,

Can you give me the link of dicussion this problem?
That will be nice If any example I can read.
Thanks.

On 5/26/06, Julian Ray <julianjray@yahoo.com> wrote:
> This is in our web.xml
>
>        <error-page>
>                <error-code>500</error-code>
>                <location>/ErrorDisplay.jsf</location>
>        </error-page>
>
> But there is a bug in the JSF framework which requires the error page to use
> a f:subview rather than a f;view tag. There is a good discussion on this in
> the MyFaces book.
>
>
> -----Original Message-----
> From: Anthony Hong [mailto:anthony.bin.hong@gmail.com]
> Sent: Thursday, May 25, 2006 9:38 PM
> To: MyFaces Discussion
> Subject: How to redirect to an error page when JSF page failed
>
> In jsp with servlet, I define error page configuration in web.xml to
> redirect to an error page when error occured.
>  <error-page>
>        <exception-type>java.lang.Exception</exception-type>
>        <location>/errorpages/error500.jsp</location>
>    </error-page>
>
> But in JSF page, it doesn't work. How should I configurate?
>
> --
>
> Anthony Hong
>
>


-- 

Anthony Hong

Mime
View raw message