diff --git a/src/main/webapp/WEB-INF/jsp/error/errorPage.jsp b/src/main/webapp/WEB-INF/jsp/error/errorPage.jsp deleted file mode 100644 index 6e662796..00000000 --- a/src/main/webapp/WEB-INF/jsp/error/errorPage.jsp +++ /dev/null @@ -1,82 +0,0 @@ -<%@ page language="java" pageEncoding="UTF-8" isELIgnored="false" session="false"%> -<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> -<%@ page import="java.util.HashMap, javax.servlet.http.HttpServletRequest, cokr.xit.foundation.data.Convert" %> -<%! private static final HashMap titles = new HashMap<>(); - - static { - titles.put("404", "Page Not Found"); - titles.put("sessionExpired", "Session Expired"); - titles.put("invalidSession", "Invalid Session"); - titles.put("accessDenied", "Access Denied"); - titles.put("500", "Server Error"); - } - - private static void setTitle(HttpServletRequest hreq) { - String status = Convert.toString(hreq.getAttribute("status")); - if (status == "") - status = "500"; - String title = titles.get(status); - if (title == null) - title = titles.get("500"); - hreq.setAttribute("title", title); - } -%> -<% setTitle(request); %> -<% - response.setContentType("application/json; charset=UTF-8"); - String stacktrace = (String)request.getAttribute("stacktrace"); - request.setAttribute("stacktrace", Convert.rntq(stacktrace)); -%>{ - "path": "${path}", - "failed": true, - "status": "${status}", - "title": "${title}", - "message": "${message}", - "description": "${description}", - "stacktrace": "${stacktrace}" -} -<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> - - - - - - -
-
-

${title} :(

-

죄송합니다. 😖

-

${message}

- 처음으로 돌아가기 - 이전으로 돌아가기 -
- " - alt="page-misc-error-light" - width="500" - class="img-fluid" - data-app-dark-img="illustrations/page-misc-error-dark.png" - data-app-light-img="illustrations/page-misc-error-light.png" - /> -
-
-
- - - - - - - -