wisemapping-open-source/wise-webapp/src/main/webapp/jsp/errorTemplate.jsp
Paulo Gustavo Veiga 43aa3e2aea Fix change locale.
2012-06-30 02:56:18 -03:00

38 lines
902 B
Plaintext

<!DOCTYPE HTML>
<%@ page import="org.apache.log4j.Logger" %>
<%@ page import="com.wisemapping.security.Utils" %>
<%@ page import="com.wisemapping.model.User" %>
<%@ page autoFlush="true" buffer="none" %>
<%@ include file="/jsp/init.jsp" %>
<%!
final Logger logger = Logger.getLogger("com.wisemapping");
%>
<h2>
<spring:message code="${requestScope.title}"/>
</h2>
<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";
final User user = Utils.getUser(false);
if(user!=null)
{
usrMail = user.getEmail();
}
logger.error("Unexpected error on user '" + usrMail+ " ':", exception);
}
%>
-->