⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 error.jsp

📁 java 写的一个新闻发布系统
💻 JSP
字号:
<%@page language = "java" %><%@page import   = "java.util.*" %><%@page import   = "org.jahia.bin.Jahia" %><%    String message     = (String) request.getAttribute("org.jahia.exception.Message");    boolean isWarning = false;    if (message != null) {        if (message.startsWith("WARNING")) {            isWarning = true;            message = message.substring(7);        }    }    String stackTrace  = (String) request.getAttribute("org.jahia.exception.StackTrace");    String rootCause   = (String) request.getAttribute("org.jahia.exception.RootCause");    String rootCause2  = (String) request.getAttribute("org.jahia.exception.RootCause2");%><html><head>    <title>Jahia Error</title>    <link rel="stylesheet" href="<%=request.getContextPath()%>/jsp/jahia/engines/css/jahia.css" type="text/css"></head><body class="install" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><center><br><br><br><table cellpadding="1" cellspacing="0" bgcolor="#000000" width="530" border="0"><tr>    <td>        <table cellpadding="0" cellspacing="0" width="530" border="0">        <tr>            <td bgcolor="#92A4AD">                <table width="530" height="63" border="0" cellspacing="0" cellpadding="0">                <tr>                    <td width="126" height="63"><img src="<%=request.getContextPath()%>/jsp/jahia/engines/images/header.gif" width="126" height="63"></td>                    <td width="404" height="63" background="<%=request.getContextPath()%>/jsp/jahia/engines/images/header_bg.gif">&nbsp;</td>                </tr>                <tr>                    <td align="right" class="text" colspan="2"><b>::&nbsp;&nbsp;Error page&nbsp;&nbsp;::</b>&nbsp;&nbsp;&nbsp;&nbsp;</td>                </tr>                </table>                <br><br>                <table cellpadding="2" cellspacing="0" border="0" width="530">                <tr>                    <td colspan="2" width="530">&nbsp;</td>                </tr>                <tr>                    <td width="50">&nbsp;</td>                    <td width="480">                        <font class="text">                        <% if (isWarning) { %>                        An warning has occured during processing. Please contact the <br>                        administrator if you get this message repeatedly.<br>                        <% } else { %>                        An error has occured during processing. Please contact the <br>                        administrator if you get this message repeatedly.<br>                        <% } %>                        <br>                        <% if ((Jahia.getContextPath() != null) && (Jahia.getServletPath() != null)) { %>                            <a href="<%=Jahia.getContextPath()%><%=Jahia.getServletPath()%>">Click here to return to Jahia</a>                        <% } %>                        <% if (isWarning) { %>                        <br><br>                        <b>Warning :</b><br>                        <%=message%>                        <% } %><!--                        <br><br>                        <b>Error :</b><br>                        <%=message%>                        <%                            if (stackTrace != null)                            {                        %>                            <br><br>                            <b>Exception StackTrace:</b><br>                            <font size="1"><%=stackTrace%></font>                        <%                            }                            if (rootCause != null)                            {                        %>                            <br><br>                            <b>Root Exception Caused:</b><br>                            <font size="1"><%=rootCause%></font>                        <%                            }                            if (rootCause2 != null)                            {                        %>                            <br><br>                            <b>Root 2 Exception Caused:</b><br>                            <font size="1"><%=rootCause2%></font>                        <%                            }                        %>-->            <br><br>            A mail notification has been sent to the Administrator.                        </font>                    </td>                </tr>                <tr>                    <td colspan="2">                        <br><br>&nbsp;                    </td>                </tr>                </table>            </td>        </tr>        </table>    </td></tr></table></center></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -