home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 July / CMCD0703.ISO / Software / Freeware / Programare / bugzero / jsp / error.jsp < prev    next >
Text File  |  2003-06-05  |  617b  |  31 lines

  1. <%@ page isErrorPage="true"
  2.     import="com.websina.util.log.Log"
  3. %>
  4. <html>
  5. <head>
  6. <title>Error</title>
  7. </head>
  8. <%@ include file="_cache.jspf" %>
  9. <body>
  10. <p><font size=+1 color="red">
  11. <%
  12.   String error = (String) request.getAttribute("error");
  13.   if (error == null) {
  14.     error = request.getQueryString();
  15.     if (error != null) {
  16.       error = java.net.URLDecoder.decode(error);
  17.     } 
  18.   }
  19.   if (error != null) {
  20.     out.println(error);
  21.     out.println("<br>");
  22.   }
  23.   if(exception != null) {
  24.     out.println(exception.getMessage());
  25.     Log.log(exception);
  26.   }
  27. %>
  28. </font>
  29. </body>
  30. </html>
  31.