Error page support for I18n.
This commit is contained in:
@@ -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>
|
||||
|
@@ -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);
|
||||
|
||||
}
|
||||
%>
|
||||
|
Reference in New Issue
Block a user