Im working on jsf2.
If im not using page till session timeout then page is giving the ViewExpirationException and page is broken. so how to handle this error. i was trying to redirect to ErrorPage.xhtml
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/error.xhtml</location>
</error-page>
I created the error.xhtml page for display.
But im not able to see this error page. What can be my mistake.
Thanks in advance.
write this below code in
index.xhtml
web.xml
create an error page and write the error message what you want to display.