continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r734936 - /continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/error/httpError.jsp
Date Fri, 16 Jan 2009 07:41:29 GMT
Author: ctan
Date: Thu Jan 15 23:41:28 2009
New Revision: 734936

URL: http://svn.apache.org/viewvc?rev=734936&view=rev
Log:
[CONTINUUM-1962] fixed localization

Modified:
    continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/error/httpError.jsp

Modified: continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/error/httpError.jsp
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/error/httpError.jsp?rev=734936&r1=734935&r2=734936&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/error/httpError.jsp (original)
+++ continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/error/httpError.jsp Thu Jan
15 23:41:28 2009
@@ -27,8 +27,14 @@
 <head>
   <title>
     <c:choose>
-      <c:when test="${param.errorCode == 403 || param.errorCode == 404 || param.errorCode
== 500}">
-        <s:text name="error.%{param.errorCode}.title"/>
+      <c:when test="${param.errorCode == 403}">
+        <s:text name="error.403.title"/>
+      </c:when>
+      <c:when test="${param.errorCode == 404}">
+        <s:text name="error.404.title"/>
+      </c:when>
+      <c:when test="${param.errorCode == 405}">
+        <s:text name="error.405.title"/>
       </c:when>
       <c:otherwise>
         <s:text name="error.page.title"/>
@@ -61,8 +67,14 @@
             <div id="axial" class="h3">
               <h3>
                 <c:choose>
-                  <c:when test="${param.errorCode == 403 || param.errorCode == 404 ||
param.errorCode == 500}">
-                    <s:text name="error.%{param.errorCode}.section.title"/>
+                  <c:when test="${param.errorCode == 403}">
+                    <s:text name="error.403.section.title"/>
+                  </c:when>
+                  <c:when test="${param.errorCode == 404}">
+                    <s:text name="error.404.section.title"/>
+                  </c:when>
+                  <c:when test="${param.errorCode == 405}">
+                    <s:text name="error.405.section.title"/>
                   </c:when>
                   <c:otherwise>
                     The URL requested results to an unknown error.
@@ -72,8 +84,14 @@
 
               <div class="errormessage">
                 <c:choose>
-                  <c:when test="${param.errorCode == 403 || param.errorCode == 404 ||
param.errorCode == 500}">
-                    <s:text name="error.%{param.errorCode}.message"/>
+                  <c:when test="${param.errorCode == 403}">
+                    <s:text name="error.403.message"/>
+                  </c:when>
+                  <c:when test="${param.errorCode == 404}">
+                    <s:text name="error.404.message"/>
+                  </c:when>
+                  <c:when test="${param.errorCode == 405}">
+                    <s:text name="error.405.message"/>
                   </c:when>
                   <c:otherwise>
                     The URL requested results to an unknown error.



Mime
View raw message