home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 May / CMCD0505.ISO / Software / Shareware / Programare / bugzero / jsp / error.jsp < prev    next >
Text File  |  2004-08-11  |  546b  |  29 lines

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