If I have an exception in my business layer (e.g. a SQL exception in my JDBC connection bean), how can I propagate it with a custom message to a global error.jsp
pa
You can put
<%@ page errorPage="error.jsp" %>
in jour jsp/jsf page. In error.jsp, jou would have:
<%@ page isErrorPage="true" %>
isErrorPage="true" will give your page another implicit object: exception (the same way you already have request and response on jsp page). You can then extract message from exception.
Additional details