Java EE. Simulate exeption

SimulateExeption.java(Servlet)

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        int i = 10;
        int j = 0;
        int k = i/j;
        PrintWriter out = response.getWriter();
        out.println("The result is " + k);
    }

alwaysThrowsExeption.jsp
!pay attention to

<%@ page language="java"
    contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    errorPage="errorHandler.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Bad Page</title>
</head>
<body>
    <jsp:forward page="/simulateException.do" />
</body>
</html>

ErrorHandler.jsp (shows error)

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" isErrorPage="true"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Our bad!</title>
</head>
<body>
    <%@ include file="header.jsp"%>
    <table style="width: 100%;">
        <tr>
            <td style="width: 25%; height: 80%;" valign="top"><%@ include
                    file="navbar.jsp"%></td>
            <td style="width: 75%; height: 80%;">
                <h1>An Error has occurred!</h1>
                <br> ${pageContext.exception.message}
            </td>
        </tr>
    </table>
    <jsp:include page="footer.jsp" />
</body>
</html>