"Fossies" - the Fresh Open Source Software Archive

Member "document-management-system-6.3.11/src/main/webapp/error.jsp" (30 Jun 2021, 2515 Bytes) of package /linux/www/OpenKM-document-management-system-6.3.11.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JavaServer Pages source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "error.jsp": 6.3.10_vs_6.3.11.

    1 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    2 <%@ page import="bsh.TargetError" %>
    3 <%@ page import="com.openkm.frontend.client.OKMException" %>
    4 <%@ page import="com.openkm.util.FormatUtil" %>
    5 <%@ page isErrorPage="true" %>
    6 <?xml version="1.0" encoding="UTF-8" ?>
    7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    8 <html xmlns="http://www.w3.org/1999/xhtml">
    9 <head>
   10   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   11   <% if (FormatUtil.isMobile(request)) { %>
   12   <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/>
   13   <link rel="stylesheet" href="<%=request.getContextPath() %>/css/mobile.css" type="text/css" />
   14   <% } else { %>
   15   <link rel="stylesheet" href="<%=request.getContextPath() %>/css/desktop.css" type="text/css" />
   16   <% } %>
   17   <title>OpenKM Error</title>
   18 </head>
   19 <body style="background-color: #f6f6ee;">
   20   <table border="0" width="100%" align="center" style="padding-top: 150px">
   21   <tr><td align="center">
   22   <table class="form">
   23     <tr class="fuzzy">
   24       <td colspan="2" style="text-align: center; font-weight: bold; font-size: 12px">Application error</td>
   25     </tr>
   26     <tr>
   27       <td><b>Class:</b></td>
   28       <td><%=exception.getClass().getName() %></td>
   29     </tr>
   30     <% if (exception instanceof OKMException) { %>
   31     <tr>
   32       <td><b>Code:</b></td>
   33       <td><%=((OKMException) exception).getCode() %></td>
   34     </tr>
   35     <tr>
   36       <td><b>Message:</b></td>
   37       <td><%=FormatUtil.sanitizeInput(exception.getMessage()) %></td>
   38     </tr>
   39     <% } else if (exception instanceof TargetError) { %>
   40     <tr>
   41       <td><b>Text:</b></td>
   42       <td><%=((TargetError) exception).getErrorText() %></td>
   43     </tr>
   44     <tr>
   45       <td><b>Source:</b></td>
   46       <td><%=((TargetError) exception).getErrorSourceFile() %></td>
   47     </tr>
   48     <tr>
   49       <td><b>Line:</b></td>
   50       <td><%=((TargetError) exception).getErrorLineNumber() %></td>
   51     </tr>
   52     <% } else { %>
   53     <tr>
   54       <td><b>Message:</b></td>
   55       <td><%=FormatUtil.sanitizeInput(exception.getMessage()) %></td>
   56     </tr>
   57     <% } %>
   58     <tr>
   59       <td><b>Date:</b></td>
   60       <td><%= new java.util.Date() %></td>
   61     </tr>
   62     <tr>
   63       <td colspan="2" align="center" style="padding-top: 10px;">
   64         <input type="button" value="Return" class="yesButton" onclick="javascript:history.go(-1)" />
   65       </td>
   66     </tr>
   67   </table>
   68   </td></tr></table>
   69 </body>
   70 </html>