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

@@ -1,22 +1,21 @@
<%@page pageEncoding="UTF-8" %>
<%@include file="/jsp/init.jsp" %>
<h2>Ups!!!. Your browser is not currently supported</h2>
<h2><spring:message code="BROWSER_NOT_SUPPORTED_TITLE"/></h2>
<p>Your browser has not been fully tested and it might not be completely functional. WiseMapping has been optimized
for:</p>
<p><spring:message code="BROWSER_NOT_SUPPORTED_MSG"/></p>
<ul>
<li>Chrome 19 or greater</li>
<li>Firefox 11.0 or greater</li>
<li>Opera 11 or greater</li>
<li>Safari 5 or greater</li>
<li>Internet Explorer 8.0 or greater</li>
<li>Chrome 19 <spring:message code="OR_GREATER"/></li>
<li>Firefox 11.0 <spring:message code="OR_GREATER"/></li>
<li>Opera 11 <spring:message code="OR_GREATER"/></li>
<li>Safari 5 <spring:message code="OR_GREATER"/></li>
<li>Internet Explorer 8.0 <spring:message code="OR_GREATER"/></li>
</ul>
<p>
Try again with one of the browsers previously listed.
<spring:message code="BROWSER_NOT_SUPPORTED_TRY_AGAIN"/>
</p>
<p>
<span class="label label-info">Note:</span> Browsers are listed based on performance and
hours of testing invested by our team.
<span class="label label-info"><spring:message code="IMPORTANT"/>: </span><spring:message
code="BROWSER_RECOMMENDATION"/>
</p>

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);
}
%>