Title: Message
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:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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

Reply via email to