001    package jsp.jsp2.misc;
002    
003    import javax.servlet.*;
004    import javax.servlet.http.*;
005    import javax.servlet.jsp.*;
006    
007    public final class config_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      static {
013        _jspx_dependants = new java.util.ArrayList(3);
014        _jspx_dependants.add("/jsp2/misc/prelude.jspf");
015        _jspx_dependants.add("/WEB-INF/jsp2/jsp2-example-taglib.tld");
016        _jspx_dependants.add("/jsp2/misc/coda.jspf");
017      }
018    
019      public Object getDependants() {
020        return _jspx_dependants;
021      }
022    
023      public void _jspService(HttpServletRequest request, HttpServletResponse response)
024            throws java.io.IOException, ServletException {
025    
026        JspFactory _jspxFactory = null;
027        PageContext pageContext = null;
028        HttpSession session = null;
029        ServletContext application = null;
030        ServletConfig config = null;
031        JspWriter out = null;
032        Object page = this;
033        JspWriter _jspx_out = null;
034        PageContext _jspx_page_context = null;
035    
036    
037        try {
038          _jspxFactory = JspFactory.getDefaultFactory();
039          response.setContentType("text/html;charset=ISO-8859-1");
040          pageContext = _jspxFactory.getPageContext(this, request, response,
041                            null, true, 8192, true);
042          _jspx_page_context = pageContext;
043          application = pageContext.getServletContext();
044          config = pageContext.getServletConfig();
045          session = pageContext.getSession();
046          out = pageContext.getOut();
047          _jspx_out = out;
048    
049          out.write("<!--\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<hr>\n<center>\nThis banner included with &lt;include-prelude&gt;\n</center>\n<hr>\n");
050          out.write("<!--\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    <h1>JSP 2.0 Examples - JSP Configuration</h1>\n    <hr>\n    <p>Using a &lt;jsp-property-group&gt; element in the web.xml \n    deployment descriptor, this JSP page has been configured in the\n    following ways:</p>\n    <ul>\n      <li>Uses &lt;include-prelude&gt; to include the top banner.</li>\n");
051          out.write("      <li>Uses &lt;include-coda&gt; to include the bottom banner.</li>\n      <li>Uses &lt;scripting-invalid&gt; true to disable \n\t  &lt;% scripting %&gt; elements</li>\n      <li>Uses &lt;el-ignored&gt; true to disable ");
052          out.write("${EL}");
053          out.write(" elements</li>\n      <li>Uses &lt;page-encoding&gt; ISO-8859-1 to set the page encoding (though this is the default anyway)</li>\n    </ul>\n    There are various other configuration options that can be used.\n\n");
054          out.write("<!--\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<hr>\n<center>\nThis banner included with &lt;include-coda&gt;\n</center>\n<hr>\n");
055        } catch (Throwable t) {
056          if (!(t instanceof SkipPageException)){
057            out = _jspx_out;
058            if (out != null && out.getBufferSize() != 0)
059              out.clearBuffer();
060            if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
061          }
062        } finally {
063          if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
064        }
065      }
066    }