
Don't store the ApplicationBean in the request or in the context, and don't look for it there.
54 lines
No EOL
2.2 KiB
Text
Executable file
54 lines
No EOL
2.2 KiB
Text
Executable file
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
|
|
|
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
|
|
<%@ page isErrorPage="true" %>
|
|
<%@ page import="com.oreilly.servlet.ServletUtils,edu.cornell.mannlib.vitro.webapp.web.*" %>
|
|
<%@page import="edu.cornell.mannlib.vitro.webapp.controller.VitroRequest"%>
|
|
<%@page import="edu.cornell.mannlib.vitro.webapp.beans.ApplicationBean"%>
|
|
<%
|
|
VitroRequest vreq = new VitroRequest(request);
|
|
ApplicationBean appBean = vreq.getAppBean();
|
|
String themeDir = appBean.getThemeDir();
|
|
|
|
request.setAttribute("bodyJsp", "/errorbody.jsp");
|
|
request.setAttribute("title", "Error");
|
|
request.setAttribute("css", "");
|
|
request.setAttribute("themeDir", themeDir);
|
|
%>
|
|
|
|
|
|
<jsp:include page="/templates/page/doctype.jsp"/>
|
|
<head>
|
|
<jsp:include page="/templates/page/headContent.jsp"/>
|
|
</head>
|
|
<body> <!-- generated by error.jsp -->
|
|
<div id="wrap">
|
|
<jsp:include page="/templates/page/freemarkerTransition/identity.jsp" flush="true"/>
|
|
|
|
<div id="contentwrap">
|
|
<jsp:include page="/templates/page/freemarkerTransition/menu.jsp" flush="true"/>
|
|
<p>There was an error in the system; please try again later.</p>
|
|
<div>
|
|
<h3>Exception: </h3><%= exception %>
|
|
</div>
|
|
|
|
<div>
|
|
<% try{ %>
|
|
<h3>Trace:</h3><pre><%= ServletUtils.getStackTraceAsString(exception) %></pre>
|
|
<% }catch (Exception e){ %>
|
|
No trace is available.
|
|
<% } %>
|
|
</div>
|
|
|
|
<div>
|
|
<% try{ %>
|
|
<h3>Request Info:</h3><%= MiscWebUtils.getReqInfo(request) %>
|
|
<% }catch (Exception e){ %>
|
|
No request information is available.
|
|
<% } %>
|
|
</div>
|
|
</div> <!-- contentwrap -->
|
|
<jsp:include page="/templates/page/freemarkerTransition/footer.jsp" flush="true"/>
|
|
</div> <!-- wrap -->
|
|
</body>
|
|
</html> |