> Hi all, > > I'd like to set up more than one error page for a exception, depending > on the URL of the jsp/servlet where the exception has been throwned. > > As an example: > - If url=/app1/dir1/*.jsp -> Error page = /app1/dir1/error.jsp > - If url=/app1/dir2/*.jsp -> Error page = /app1/dir2/error.jsp > > As you can see there is only one web application, so there is one > web.xml >
Use <%@ page errorPage="error.jsp" %> inside each jsp.