error.jsp

来自「Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛」· JSP 代码 · 共 94 行

JSP
94
字号
<%/** *	$RCSfile: error.jsp,v $ *	$Revision: 1.3 $ *	$Date: 2002/08/09 22:45:12 $ */%><%@ page import="java.io.*,                 com.jivesoftware.forum.*,                 com.jivesoftware.forum.util.*"    isErrorPage="true"%><font size="-1" face="arial,helvetica,sans-serif"><b>Jive Forums <%= JiveGlobals.getJiveVersion() %> Admin Error</b></font><hr size="0"><%  boolean debug = "true".equals(JiveGlobals.getJiveProperty("skin.default.debug"));    if (debug) {        exception.printStackTrace();    }%><%  if (exception instanceof LicenseException) { %>    <font size="-1" face="arial,helvetica,sans-serif">    This copy of Jive Forums has expired.    </font><%  } else if (exception instanceof UnauthorizedException) {        String message = exception.getMessage();        if (message == null) {            message = "You don't have admin privileges to perform this operation.";        }%>    <font size="-1" face="arial,helvetica,sans-serif">    <%= message %>    </font><%  } else if (exception instanceof ForumNotFoundException) {        long forumID = ParamUtils.getLongParameter(request,"forum",-1L);%>    <font size="-1" face="arial,helvetica,sans-serif">    The requested forum    <%  if (forumID != -1L) { %>        (id: <%= forumID %>)    <%  } %>    was not found.    </font><%  } else if (exception instanceof ForumThreadNotFoundException) {        long threadID = ParamUtils.getLongParameter(request,"thread",-1L);%>    <font size="-1" face="arial,helvetica,sans-serif">    The requested forum thread    <%  if (threadID != -1L) { %>        (id: <%= threadID %>)    <%  } %>    was not found.    </font><%  } else if (exception instanceof UserNotFoundException) {        String user = ParamUtils.getParameter(request,"user");%>    <font size="-1" face="arial,helvetica,sans-serif">    The requested user    <%  if (user != null) { %>        (id: <%= user %>)    <%  } %>    was not found.    </font>    <%  } else {        exception.printStackTrace();        if (exception != null) {            StringWriter sout = new StringWriter();            PrintWriter pout = new PrintWriter(sout);            exception.printStackTrace(pout);%>    <pre><%= sout.toString() %>    </pre><%      }    }%></body></html>

⌨️ 快捷键说明

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