I often have redirects like
r.sendRedirect("error.jsp");
Anyway the web.xml already defines error-pages.
<error-page>
<exception-type>javax.servlet.ServletException</exception-type>
<location>/error.jsp</location>
</error-page>
How can I programmatically get the configured error.jsp?