Skip to content

Commit

Permalink
Improve error page
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudroques authored Jul 8, 2024
1 parent 2c96caa commit 5ee5c48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/webapp/error.jsp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<%@ page isErrorPage="true" contentType="text/html; charset=utf-8" pageEncoding="utf-8" session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Expand All @@ -21,9 +22,9 @@
<jsp:useBean id="now" class="java.util.Date" />
<ul>
<li><%= now.toString() %></li>
<li>Request that failed: <%= pageContext.getErrorData().getRequestURI() %></li>
<li>Status code: <%= pageContext.getErrorData().getStatusCode() %></li>
<li>Exception: <%= pageContext.getErrorData().getThrowable() %></li>
<li>Request that failed: <code><c:out value="${pageContext.errorData.requestURI}"/></code></li>
<li>Status code: <code><c:out value="${pageContext.errorData.statusCode}"/></code></li>
<li>Exception: <code><c:out value="${pageContext.errorData.throwable}"/></code></li>
</ul>
<hr/>
</body>
Expand Down

1 comment on commit 5ee5c48

@dk4trin
Copy link

@dk4trin dk4trin commented on 5ee5c48 Jul 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick fix @arnaudroques !!

Please sign in to comment.