You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Clément Maignien <c....@edic-syliance.com> on 2005/08/26 09:36:36 UTC
RE : Setting error page
OK thx Paul this works fine for the redirect on error. I'll look at the link for the session timeout redirection.
Thx again.
Clément.
-----Message d'origine-----
De : Keel, Paul [mailto:keel@ugs.com]
Envoyé : jeudi 25 août 2005 16:20
À : MyFaces Discussion
Objet : RE: Setting error page
To Set the error page, put the following entry in your web.xml file:
<error-page>
<error-code>500</error-code>
<location>/errorPage.jsf</location>
</error-page>
I believe you can set a page for each type of error but this seems to redirect on all exceptions.
In order to redirect to a page when the session ends, you will have to write a session filter. I found this article very useful:
http://www.jguru.com/forums/view.jsp?EID=1248692
Paul
_____
From: Clément Maignien [mailto:c.maignien@edic-syliance.com]
Sent: Thursday, August 25, 2005 8:42 AM
To: MyFaces Discussion
Subject: Setting error page
Hi,
I would like to know how to set a JSF error page that will be displayed instead of the default Tomcat one.
Is it possible to redirect the navigation to a specific page when the user session times out ?
Thx.
Clément