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

📄 simplejsp_0005ferror_0002ejsp_jsp.java

📁 Contains a complete archiver by Haruhiko Okumura. The archiver uses an LZ engine whose output is c
💻 JAVA
字号:
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class SimpleJsp_0005ferror_0002ejsp_jsp extends HttpJspBase {


    static {
    }
    public SimpleJsp_0005ferror_0002ejsp_jsp( ) {
    }

    private static boolean _jspx_inited = false;

    public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
    }

    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
        throws java.io.IOException, ServletException {

        JspFactory _jspxFactory = null;
        PageContext pageContext = null;
        HttpSession session = null;
        Throwable exception = (Throwable) request.getAttribute("javax.servlet.jsp.jspException");
        ServletContext application = null;
        ServletConfig config = null;
        JspWriter out = null;
        Object page = this;
        String  _value = null;
        try {

            if (_jspx_inited == false) {
                synchronized (this) {
                    if (_jspx_inited == false) {
                        _jspx_init();
                        _jspx_inited = true;
                    }
                }
            }
            _jspxFactory = JspFactory.getDefaultFactory();
            response.setContentType("text/html; charset=GBK");
            pageContext = _jspxFactory.getPageContext(this, request, response,
            			"", true, 8192, true);

            application = pageContext.getServletContext();
            config = pageContext.getServletConfig();
            session = pageContext.getSession();
            out = pageContext.getOut();

            // HTML // begin [file="/SimpleJsp_error.jsp";from=(0,48);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/SimpleJsp_error.jsp";from=(1,30);to=(7,52)]
                out.write("\n<html>\n<body bgcolor=\"#ffffff\">\n\n<h1>Error page SimpleJsp</h1>\n\n<br>An error occured in the bean. Error Message is: ");

            // end
            // begin [file="/SimpleJsp_error.jsp";from=(7,55);to=(7,79)]
                out.print( exception.getMessage() );
            // end
            // HTML // begin [file="/SimpleJsp_error.jsp";from=(7,81);to=(8,40)]
                out.write("<br>\nStack Trace is : <pre><font color=\"red\">");

            // end
            // begin [file="/SimpleJsp_error.jsp";from=(8,42);to=(13,1)]
                 
                 java.io.CharArrayWriter cw = new java.io.CharArrayWriter(); 
                 java.io.PrintWriter pw = new java.io.PrintWriter(cw,true); 
                 exception.printStackTrace(pw); 
                 out.println(cw.toString()); 
                 
            // end
            // HTML // begin [file="/SimpleJsp_error.jsp";from=(13,3);to=(16,0)]
                out.write("</font></pre>\n<br></body>\n</html>\r\n");

            // end

        } catch (Throwable t) {
            if (out != null && out.getBufferSize() != 0)
                out.clearBuffer();
            if (pageContext != null) pageContext.handlePageException(t);
        } finally {
            if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
        }
    }
}

⌨️ 快捷键说明

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