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

📄 errorpage10.jsp

📁 精通tomcat书籍原代码,希望大家共同学习
💻 JSP
字号:
<%@ page contentType="text/plain" isErrorPage="true" %><%

        // Accumulate all the reasons this request might fail
        StringBuffer sb = new StringBuffer();
        Object value = null;

        if (exception == null) {
            sb.append(" exception is missing/");
        } else {
            if (!(exception instanceof java.lang.ArrayIndexOutOfBoundsException)) {
                sb.append(" exception class is ");
                sb.append(exception.getClass().getName());
                sb.append("/");
            }
            if (!"ErrorPage09 Threw ArrayIndexOutOfBoundsException".equals(exception.getMessage())) {
                sb.append(" exception message is ");
                sb.append(exception.getMessage());
                sb.append("/");
            }
        }

        // Report ultimate success or failure
        if (sb.length() < 1)
            out.println("ErrorPage10 PASSED");
        else
            out.println("ErrorPage10 FAILED -" + sb.toString());

%>
<%
  out.println("EXCEPTION:  " + exception);
%>

⌨️ 快捷键说明

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