I have the following question:
The Java Servlet Specification v3.0 pg104 says:
The error page mechanism described does not intervene when errors occur when invoked using the RequestDispatcher or filter.doFilter method. In this way, a filter or servlet using the RequestDispatcher has the opportunity to handle errors generated.
What does this mean?
If I have a web.xml with customized <error-page> section and I use sendError from a doFilter method, will the custom or the default error page be shown?
On the other hand how is it possible to skip the customized <error-page> and return for example 404? Use setStatus?