added exception stacktrace into an html comment

This commit is contained in:
Mic 2013-02-14 11:18:30 +08:00
parent 0c09ec3bd1
commit ebe7551076

View file

@ -1,5 +1,6 @@
<html lang="en"> <html lang="en">
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> <%@ 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"/> <jsp:include page="fragments/headTag.jsp"/>
@ -11,6 +12,12 @@
<h2>Something happened...</h2> <h2>Something happened...</h2>
<p>${exception.message}</p> <p>${exception.message}</p>
<!-- Exception: ${exception.message}.
<c:forEach items="${exception.stackTrace}" var="stackTrace">
${stackTrace}
</c:forEach>
-->
<jsp:include page="fragments/footer.jsp"/> <jsp:include page="fragments/footer.jsp"/>