wisemapping-open-source/wise-webapp/src/main/webapp/jsp/errorTemplate.jsp

38 lines
902 B
Plaintext
Raw Normal View History

2012-06-22 03:18:04 +02:00
<!DOCTYPE HTML>
2009-06-07 20:59:43 +02:00
<%@ page import="org.apache.log4j.Logger" %>
2012-06-30 07:56:18 +02:00
<%@ page import="com.wisemapping.security.Utils" %>
<%@ page import="com.wisemapping.model.User" %>
2009-06-07 20:59:43 +02:00
<%@ page autoFlush="true" buffer="none" %>
<%@ include file="/jsp/init.jsp" %>
<%!
final Logger logger = Logger.getLogger("com.wisemapping");
%>
2012-06-22 03:18:04 +02:00
<h2>
2009-06-07 20:59:43 +02:00
<spring:message code="${requestScope.title}"/>
2012-06-22 03:18:04 +02:00
</h2>
2009-06-07 20:59:43 +02:00
<p style="font-weight:bold;">
<spring:message code="${requestScope.details}"/>
</p>
<!--
<%
final Throwable exception = (Throwable) request.getAttribute("exception");
if (exception != null) {
exception.printStackTrace(response.getWriter());
String usrMail = "anonymous";
2012-06-30 07:56:18 +02:00
final User user = Utils.getUser(false);
2009-06-07 20:59:43 +02:00
if(user!=null)
{
usrMail = user.getEmail();
}
logger.error("Unexpected error on user '" + usrMail+ " ':", exception);
}
%>
-->