JSP - exceptionオブジェクト
1. JSP内のexceptionをキャッチした際のオブジェクトである。
2. <%@ page isErrorPage="true" %>際に使用できる。
throwEx.jsp |
<html>
<head>
<title>throw a exception</title>
</head>
<body>
<%-- applicationオブジェクトに属性 --%>
<%
int i = 10;
int b = 10 / 0; // エラー発生
%>
</body>
</html>
|
error.jsp |
URL:http://localhost:8080/webDemo/throwEx.jsp