mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:25:50 +00:00
added exception stacktrace into an html comment
This commit is contained in:
parent
0c09ec3bd1
commit
ebe7551076
1 changed files with 7 additions and 0 deletions
|
@ -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"/>
|
||||
|
||||
|
|
Loading…
Reference in a new issue