mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-09-07 21:19:02 +00:00
Improve error page
This commit is contained in:
parent
2c96caadbb
commit
5ee5c48b1c
@ -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">
|
||||
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user