e.g. Calendar Search Help
You must enter a value before pressing Search
tomcat

Class: org.apache.jsp.jsp2.misc.config_jsp   ©

 OK to copy?
01 package org.apache.jsp.jsp2.misc;
02 
03 import javax.servlet.*;
04 import javax.servlet.http.*;
05 import javax.servlet.jsp.*;
06 
07 public final class config_jsp extends org.apache.jasper.runtime.HttpJspBase
08     implements org.apache.jasper.runtime.JspSourceDependent {
09 
10   private static java.util.Vector _jspx_dependants;
11 
12   static {
Rate13     _jspx_dependants = new java.util.Vector(3);
14     _jspx_dependants.add("/jsp2/misc/prelude.jspf");
15     _jspx_dependants.add("/WEB-INF/jsp2/jsp2-example-taglib.tld");
16     _jspx_dependants.add("/jsp2/misc/coda.jspf");
17   }
18 
19   public java.util.List getDependants() {
20     return _jspx_dependants;
21   }
22 
23   public void _jspService(HttpServletRequest request, HttpServletResponse response)
24         throws java.io.IOException, ServletException {
25 
26     JspFactory _jspxFactory = null;
27     PageContext pageContext = null;
28     HttpSession session = null;
29     ServletContext application = null;
30     ServletConfig config = null;
31     JspWriter out = null;
32     Object page = this;
33     JspWriter _jspx_out = null;
34     PageContext _jspx_page_context = null;
35 
36 
37     try {
38       _jspxFactory = JspFactory.getDefaultFactory();
39       response.setContentType("text/html;charset=ISO-8859-1");
40       pageContext = _jspxFactory.getPageContext(this, request, response,
41                   null, true, 8192, true);
42       _jspx_page_context = pageContext;
43       application = pageContext.getServletContext();
44       config = pageContext.getServletConfig();
45       session = pageContext.getSession();
46       out = pageContext.getOut();
47       _jspx_out = out;
48 
49       out.write("<hr>\r\n<center>\r\nThis banner included with &lt;include-prelude&gt;\r\n</center>\r\n<hr>\r\n");
50       out.write("<!--\r\n  Copyright 2004 The Apache Software Foundation\r\n\r\n  Licensed under the Apache License, Version 2.0 (the \"License\");\r\n  you may not use this file except in compliance with the License.\r\n  You may obtain a copy of the License at\r\n\r\n      http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n  Unless required by applicable law or agreed to in writing, software\r\n  distributed under the License is distributed on an \"AS IS\" BASIS,\r\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n  See the License for the specific language governing permissions and\r\n  limitations under the License.\r\n-->\r\n\r\n    <h1>JSP 2.0 Examples - JSP Configuration</h1>\r\n    <hr>\r\n    <p>Using a &lt;jsp-property-group&gt; element in the web.xml \r\n    deployment descriptor, this JSP page has been configured in the\r\n    following ways:</p>\r\n    <ul>\r\n      <li>Uses &lt;include-prelude&gt; to include the top banner.</li>\r\n      <li>Uses &lt;include-coda&gt; to include the bottom banner.</li>\r\n      <li>Uses &lt;scripting-invalid&gt; true to disable \r\n");
51       out.write("\t  &lt;% scripting %&gt; elements</li>\r\n      <li>Uses &lt;el-ignored&gt; true to disable ");
52       out.write("${EL}");
53       out.write(" elements</li>\r\n      <li>Uses &lt;page-encoding&gt; ISO-8859-1 to set the page encoding (though this is the default anyway)</li>\r\n    </ul>\r\n    There are various other configuration options that can be used.\r\n\r\n");
54       out.write("<hr>\r\n<center>\r\nThis banner included with &lt;include-coda&gt;\r\n</center>\r\n<hr>\r\n");
55     } catch (Throwable t) {
56       if (!(t instanceof SkipPageException)){
57         out = _jspx_out;
58         if (out != null && out.getBufferSize() != 0)
59           out.clearBuffer();
60         if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
61       }
62     } finally {
63       if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
64     }
65   }
66 }

            
All Examples in File:
Example
Line
Rating (found
useful by...)
13 0% of 0