src/main/webapp/WEB-INF/dynamic_fragments/error.jsp

changeset 39
e722861558bb
parent 29
27a0fdd7bca7
child 46
1574965c7dc7
--- a/src/main/webapp/WEB-INF/dynamic_fragments/error.jsp	Mon May 11 19:09:06 2020 +0200
+++ b/src/main/webapp/WEB-INF/dynamic_fragments/error.jsp	Tue May 12 22:03:00 2020 +0200
@@ -24,18 +24,20 @@
 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 --%>
-<%@page pageEncoding="UTF-8" session="true" %>
+<%@page pageEncoding="UTF-8" %>
 <%@page import="de.uapcore.lightpit.modules.ErrorModule" %>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
 
+<jsp:useBean id="exception" scope="request" type="java.lang.Throwable"/>
+
 <c:set scope="page" var="errorCode" value="${requestScope[ErrorModule.REQ_ATTR_ERROR_CODE]}"/>
 
 <div id="error-page">
     <h1><fmt:message key="h1"/></h1>
     <table>
         <tr>
-            <th><fmt:message key="errorCode" />:</th>
+            <th><fmt:message key="errorCode"/>:</th>
             <td>${errorCode}</td>
         </tr>
         <tr>

mercurial