Error page support for I18n.

This commit is contained in:
Paulo Gustavo Veiga
2012-06-30 19:01:05 -03:00
parent 8e103f44c8
commit 538e0196e2
5 changed files with 42 additions and 45 deletions

View File

@@ -13,9 +13,9 @@
<spring:message code="${requestScope.title}"/>
</h2>
<p style="font-weight:bold;">
<spring:message code="${requestScope.details}"/>
</p>
<strong>
<spring:message code="${requestScope.details}"/>
</strong>
<!--
<%
final Throwable exception = (Throwable) request.getAttribute("exception");
@@ -23,12 +23,11 @@
exception.printStackTrace(response.getWriter());
String usrMail = "anonymous";
final User user = Utils.getUser(false);
if(user!=null)
{
if (user != null) {
usrMail = user.getEmail();
}
logger.error("Unexpected error on user '" + usrMail+ " ':", exception);
logger.error("Unexpected error on user '" + usrMail + " ':", exception);
}
%>