serg
serg

Reputation: 1023

Error page handling doesn't work as it should in JSF 1.1

I have pretty old EE application that is using the JSF 1.1.8, MyFaces and Facelets. The application is running on the Websphere 8.5. I'm using exception handling in my web.xml like this:

<error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/error.html</location>
</error-page>

But instead of redirection to the error page, quite often I have the situation when the error page HTML is just added to the page where the exception appears. So the final page looks like the start of the page that I requested, but not up to the end, because than the exception appears and than goes the HTML for the error page.

So my question is how to avoid it? Any ideas how to force JSF make the redirect?

Upvotes: 0

Views: 110

Answers (0)

Related Questions