1
|
<%@ page contentType="text/html; charset=utf-8" %>
|
2
|
|
3
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
|
|
6
|
|
7
|
<head>
|
8
|
<title>Error Page</title>
|
9
|
|
10
|
<%
|
11
|
Throwable exception = (Throwable)
|
12
|
request.getAttribute("javax.servlet.error.exception");
|
13
|
String message = (String)
|
14
|
request.getAttribute("javax.servlet.error.message");
|
15
|
Integer statusCode = (Integer)
|
16
|
request.getAttribute("javax.servlet.error.status_code");
|
17
|
%>
|
18
|
<b>Status Code : </b> <%=statusCode%> <br/>
|
19
|
<b>Message : </b> <%=message%> <br/>
|
20
|
|
21
|
<% while (exception != null) { %>
|
22
|
<!-- Caught Exception -->
|
23
|
<b>Exception : <%=exception.getMessage() %></b> <br/>
|
24
|
<%
|
25
|
StackTraceElement[] trace = exception.getStackTrace();
|
26
|
for (int i = 0; i < trace.length; i++) {
|
27
|
%>
|
28
|
<i> <%=trace[i]%></i><br/>
|
29
|
<%
|
30
|
}
|
31
|
exception = exception.getCause();
|
32
|
}
|
33
|
%>
|
34
|
|
35
|
</body>
|
36
|
</html>
|