error.jsp

来自「基于Jabber协议的即时消息服务器」· JSP 代码 · 共 31 行

JSP
31
字号
<%@ page import="java.io.*,                 org.jivesoftware.util.JiveGlobals,                 org.jivesoftware.wildfire.auth.UnauthorizedException"    isErrorPage="true"%><%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %><%  boolean debug = "true".equals(JiveGlobals.getProperty("skin.default.debug"));    if (debug) {        exception.printStackTrace();    }%><%  if (exception instanceof UnauthorizedException) { %>    <p>    <fmt:message key="error.admin_privileges" />    </p><%  } %><%  if (exception != null) {        StringWriter sout = new StringWriter();        PrintWriter pout = new PrintWriter(sout);        exception.printStackTrace(pout);%>    <fmt:message key="error.exception" />    <pre><%=     sout.toString() %>    </pre><%  } %>

⌨️ 快捷键说明

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