Author: tyrell
Date: Sat Jan 19 18:19:19 2008
New Revision: 12526
Log:
Adding more information to the error page regarding the exception thrown.
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 18:19:19 2008
@@ -55,7 +55,7 @@
<head>
<title>Sorry. An error occured while processing your request.</title>
<!-- Required CSS -->
- <link href="css/styles.css" rel="stylesheet" type="text/css"/>
+ <link href="css/styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="page">
@@ -78,20 +78,44 @@
<div id="content">
<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">
+ <div style="background-color: gray;">
+ <table width="100%" height="400" border="0" cellspacing="0"
cellpadding="5">
- <tr>
- <td valign="top">
- <%= exception.getMessage() %>
- </td>
- </tr>
+ <tr>
+ <td valign="top">
+ The error reported was; <%= exception.getMessage() %>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ It was caused by a <%= exception.getCause() %>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <%
+ StackTraceElement[] trace =
exception.getStackTrace();
+ if (trace.length > 0) {
+ %>
+ The following technical information is also available
regarding this error; <br><br>
+ <%
+ for (int x = 0; x < trace.length; x++) {
+ %>
+ <%=trace[x].toString()%><br>
+ <%
+ }
+ }
+ %>
+ </td>
+ </tr>
- </table>
+ </table>
+ </div>
<%} else { %>
<div>Further information is not available at this time.</div>
<%}%>
+ <br>
+
<div>You can try going back to the <a href="index.jsp">home page</a>
and starting over. If
the problem persists, please bear with us since our team is
already looking into it.
</div>
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev