%@ page errorPage="errorpge.jsp" %> <%! public class ErrTest { public String getName() { String a = null; if (a.equals("NullPoinerException")) { } return null; } } %>