workgroup-error.jsp

来自「openfire 服务器源码下载」· JSP 代码 · 共 60 行

JSP
60
字号
<%--
  -	$RCSfile$
  -	$Revision: 28108 $
  -	$Date: 2006-03-06 13:49:44 -0800 (Mon, 06 Mar 2006) $
--%>

<%@ page
import     ="java.io.*,
             org.jivesoftware.util.ParamUtils,
             org.jivesoftware.xmpp.workgroup.UnauthorizedException,
             org.jivesoftware.openfire.user.UserNotFoundException"
isErrorPage="true"%>

<%
    if (exception instanceof UnauthorizedException) {
%>
                  <p>
          You don't have admin privileges to perform this operation.
                  </p>

<%
}
else if (exception instanceof UserNotFoundException) {
    String username = ParamUtils.getParameter(request, "username");
%>
                              <p>
          The requested user

<%
          if (username != null) {
%>

            (username: <%= username %>)

<%
          }
%>

          was not found.
                              </p>

<%
    }
%>

<%
    if (exception != null) {
      StringWriter sout = new StringWriter();
      PrintWriter  pout = new PrintWriter(sout);
      exception.printStackTrace(pout);
%>

      Spark Fastpath Exception:

      <pre> <%= sout.toString() %> </pre>

<%
    }
%>

⌨️ 快捷键说明

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