001    package jsp.error;
002    
003    import javax.servlet.*;
004    import javax.servlet.http.*;
005    import javax.servlet.jsp.*;
006    
007    public final class errorpge_jsp extends org.apache.jasper.runtime.HttpJspBase
008        implements org.apache.jasper.runtime.JspSourceDependent {
009    
010      private static java.util.List _jspx_dependants;
011    
012      public Object getDependants() {
013        return _jspx_dependants;
014      }
015    
016      public void _jspService(HttpServletRequest request, HttpServletResponse response)
017            throws java.io.IOException, ServletException {
018    
019        JspFactory _jspxFactory = null;
020        PageContext pageContext = null;
021        HttpSession session = null;
022        Throwable exception = org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);
023        if (exception != null) {
024          response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
025        }
026        ServletContext application = null;
027        ServletConfig config = null;
028        JspWriter out = null;
029        Object page = this;
030        JspWriter _jspx_out = null;
031        PageContext _jspx_page_context = null;
032    
033    
034        try {
035          _jspxFactory = JspFactory.getDefaultFactory();
036          response.setContentType("text/html");
037          pageContext = _jspxFactory.getPageContext(this, request, response,
038                            null, true, 8192, true);
039          _jspx_page_context = pageContext;
040          application = pageContext.getServletContext();
041          config = pageContext.getServletConfig();
042          session = pageContext.getSession();
043          out = pageContext.getOut();
044          _jspx_out = out;
045    
046          out.write("<html>\n<!--\n Licensed to the Apache Software Foundation (ASF) under one or more\n  contributor license agreements.  See the NOTICE file distributed with\n  this work for additional information regarding copyright ownership.\n  The ASF licenses this file to You under the Apache License, Version 2.0\n  (the \"License\"); you may not use this file except in compliance with\n  the License.  You may obtain a copy of the License at\n\n      http://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n-->\n\n<body bgcolor=\"red\">\n\n\t\n\t<h1> The exception ");
047          out.print( exception.getMessage() );
048          out.write(" tells me you\n\t     made a wrong choice. \n</body>\n</html>\n");
049        } catch (Throwable t) {
050          if (!(t instanceof SkipPageException)){
051            out = _jspx_out;
052            if (out != null && out.getBufferSize() != 0)
053              out.clearBuffer();
054            if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
055          }
056        } finally {
057          if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
058        }
059      }
060    }