In my JSP, I am accessing a bean through <jsp:useBean>.In the same JSP I have decalred my on errorPage in <%@ page %> directive. But when ever a bean class (aboue said) throws an exception, browser's errorPage is displayed and not mine one. All syntax and decalrations are as per standard. Note: In a bean class whole code is written in a try-catch block. Is try-catch block is a culprit?