From edd10082f7721ba33a22d3f8d53b8cc6d5a3a88d Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 9 Sep 2024 13:44:02 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/WEB-INF/jsp/error/errorPage.jsp | 82 ------------------- 1 file changed, 82 deletions(-) delete mode 100644 src/main/webapp/WEB-INF/jsp/error/errorPage.jsp 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" - /> -
-
-
- - - - - - - -