From ebe755107683538c946c2c80bcd32e60e1dda6ee Mon Sep 17 00:00:00 2001 From: Mic <misvy@vmware.com> Date: Thu, 14 Feb 2013 11:18:30 +0800 Subject: [PATCH] added exception stacktrace into an html comment --- src/main/webapp/WEB-INF/jsp/exception.jsp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/webapp/WEB-INF/jsp/exception.jsp b/src/main/webapp/WEB-INF/jsp/exception.jsp index bae22ab..42c7e29 100644 --- a/src/main/webapp/WEB-INF/jsp/exception.jsp +++ b/src/main/webapp/WEB-INF/jsp/exception.jsp @@ -1,5 +1,6 @@ <html lang="en"> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <jsp:include page="fragments/headTag.jsp"/> @@ -11,6 +12,12 @@ <h2>Something happened...</h2> <p>${exception.message}</p> + <!-- Exception: ${exception.message}. + <c:forEach items="${exception.stackTrace}" var="stackTrace"> + ${stackTrace} + </c:forEach> + --> + <jsp:include page="fragments/footer.jsp"/> -- GitLab