Author: tyrell
Date: Sat Jan 19 17:52:28 2008
New Revision: 12524

Log:

Making the error page absolutely plain html and independent from any of the 
APIs to preven IT from breaking when an exception occurs.

Modified:
   trunk/mashup/java/modules/www/error.jsp

Modified: trunk/mashup/java/modules/www/error.jsp
==============================================================================
--- trunk/mashup/java/modules/www/error.jsp     (original)
+++ trunk/mashup/java/modules/www/error.jsp     Sat Jan 19 17:52:28 2008
@@ -51,48 +51,51 @@
 <%@ page import="java.util.Iterator" %>
 <%@ page import="java.util.List" %>
 <%@ page import="java.util.Map" %>
-
-<%
-    Registry registry = RegistryUtils.getRegistry(request);
-
-    String bounceback = request.getParameter("bounceback");
-
-    if (bounceback == null) {
-        bounceback = "index.jsp";
-    } else {
-        bounceback = URLDecoder.decode(bounceback, "UTF-8");
-    }
-%>
 <html>
 <head>
     <title>Sorry. An error occured while processing your request.</title>
     <!-- Required CSS -->
     <link href="css/styles.css" rel="stylesheet" type="text/css"/>
-    <script language="javascript" src="js/common.js" 
type="text/javascript"></script>      
+    <script language="javascript" src="js/common.js" 
type="text/javascript"></script>
 </head>
 <body>
 <div id="page">
     <% String thisPage = "index.jsp"; %>
-    <%@ include file="header.jsp" %>
+    <div id="banner">
+        <table width="100%" border="0" cellpadding="0" cellspacing="0">
+            <tr>
+                <td>
+                    <div class="logo-position">
+                        <img src="images/wso2_mashup_logo.png"/>
+                        <span class="beta">beta</span>
+                    </div>
+                </td>
+            </tr>
+        </table>
+    </div>
     <div id="search"></div>
     <div id="welcome">
     </div>
     <div id="content">
-        <% if (exception!=null && (exception.getMessage() != null)) {%>
-        <div class="mashup_title"><%= exception.getMessage() %>
+        <div class="mashup_title">Sorry. An error occured while processing 
your request.</div>
+        <% if (exception != null && (exception.getMessage() != null)) {%>
+        <div class="mashup_title">
         </div>
         <table width="100%" height="400" border="0" cellspacing="0" 
cellpadding="5">
 
             <tr>
                 <td valign="top">
-                   <%-- <div><%=exception.printStackTrace()%></div>--%>
+                    <%= exception.getMessage() %>
                 </td>
             </tr>
 
         </table>
         <%} else { %>
-        <div class="mashup_title">Sorry. An error occured while processing 
your request.</div>
+        <div>Further information is not available at this time.</div>
         <%}%>
+        <div>You can try going back to the <a href="index.jsp">home page</a> 
and starting over. If
+            the problem persists, please contact a system administrator.
+        </div>
     </div>
     <%@ include file="footer.jsp" %>
 </div>

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to