Here is an aspect solution. A tricky way to extend FacesServlet..

http://jroller.com/page/cenkcivici?entry=p_during_the_past_two

Regards,

Mert.


On 4/25/06, Rhys Parry <rparry@infoterra.com> wrote:
Please ignore I hit send by accident.  i will send the entire message in a moment

-----Original Message-----
From: Rhys Parry [mailto:rparry@Infoterra.com]
Sent: April 25, 2006 1:39 PM
To: MyFaces Discussion
Subject: Problems displaying error pages in jsf


All,

Many many problems.

First, what i wanted to do. . .

I set up a filter in web.xml to filter requests based on security.
I wrapped myfaces FacesServlet( as it is final ) because I wanted to trap the error and email the admin once an error has occured with the stack trace.
Once I email I just wrap the exception in a ServletException and throw it.

The code looks like the following;