Hi. I have a filter that throws an exception. The container displays the error page, but the exception is null.
Is this the correct behaviour?
When a JSP page throws an exception the error page gets the exception just fine.
I'm running JBoss 3.0.4 with Jetty.
The exception the filter throws is a RuntimeException subclass. Its an application specific error and the intent is that when the error is thrown I get redirected to the error page for that exception type.
Any help is appreciated.
Still not sure if Filters should cause the exception value to be set on error pages.
However, I have found that if the filter executes:
request.setAttribute ("javax.servlet.jsp.jspException", se);
prior to throwing the exception the exception variable is set on the error page. Go figure. Could this be a Jetty bug?