I seem to recall that the error page mechanism is disabled during the invocation of a filter's doFilter method. You might consider having an outer-most filter act as your own error page handler.
I seem to recall that the error page mechanism is disabled during the invocation of a filter's doFilter method. You might consider having an outer-most filter act as your own error page handler. Additional info based on comment: The error page mechanism is disabled for the request because it is being processed by one or more filters (e.g. IPControlFilter and SessionAuthFilter).
It doesn't have anything to do with applying a filter to your error page. The "outer-most filter" I mentioned would be mapped to /* and would simply do something like: try { chain. DoFilter(request, response); } catch (Throwable exc) { // set request attributes to capture error info and then forward to error page (e.g. /error.
Jsp) } In other words, this filter is essentially a recreation of the error page mechanism...
Thanks for the response! Okay, 2 questions, first is, I have a filter on the error-page, are you saying that I should make that a filter for all pages (/*) and check each request for the exception attribute? Also, is there a way to manually set the error-page during init() if the doFilter is not getting it done?
– Owen Berger Jul 14 at 15:08 Kschneid, I tried this, but for some reason The forward in the catch portion of the block is not working. I have tried a sendRedirect and the RequestDispatcher.forward. Neither of them are working.
Also, is it really true that any filtered page needs to have it's own recreated error page functionality? – Owen Berger Jul 16 at 0:46 I accepted that answer because I now know what I need to do, I just can't manage to implement my own error filter (recreate the functionality of the error page). – Owen Berger Jul 16 at 0:48 I am a moron and forgot to set my response type as appropriate considering I was calling my – Owen Berger Jul 16 at 2:19.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.