I'd like to direct all errors to my Errorsevlet without specifying all the codes explicitly. Is there any way to do like that?
<error-page>
<error-code>400</error-code>
<location>/servlet/com.abc.servlet.ErrorServlet</location>
</error-page>
*And after reaching the ErrorServlet how can i get the stack trace of the error in the servlet. So that i can email the details when one error occurs. *