home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-tomcat-addon-1.4.9-installer.exe / index_jsp.java < prev    next >
Encoding:
Java Source  |  2004-07-12  |  15.3 KB  |  242 lines

  1. package org.apache.jsp;
  2.  
  3. import javax.servlet.*;
  4. import javax.servlet.http.*;
  5. import javax.servlet.jsp.*;
  6.  
  7. public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
  8.     implements org.apache.jasper.runtime.JspSourceDependent {
  9.  
  10.   private static java.util.Vector _jspx_dependants;
  11.  
  12.   public java.util.List getDependants() {
  13.     return _jspx_dependants;
  14.   }
  15.  
  16.   public void _jspService(HttpServletRequest request, HttpServletResponse response)
  17.         throws java.io.IOException, ServletException {
  18.  
  19.     JspFactory _jspxFactory = null;
  20.     PageContext pageContext = null;
  21.     ServletContext application = null;
  22.     ServletConfig config = null;
  23.     JspWriter out = null;
  24.     Object page = this;
  25.     JspWriter _jspx_out = null;
  26.     PageContext _jspx_page_context = null;
  27.  
  28.  
  29.     try {
  30.       _jspxFactory = JspFactory.getDefaultFactory();
  31.       response.setContentType("text/html");
  32.       pageContext = _jspxFactory.getPageContext(this, request, response,
  33.                   null, false, 8192, true);
  34.       _jspx_page_context = pageContext;
  35.       application = pageContext.getServletContext();
  36.       config = pageContext.getServletConfig();
  37.       out = pageContext.getOut();
  38.       _jspx_out = out;
  39.  
  40.       out.write("<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\r\n");
  41.       out.write("\r\n");
  42.       out.write("<html>\r\n");
  43.       out.write("    <head>\r\n");
  44.       out.write("    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\r\n");
  45.       out.write("    <title>");
  46.       out.print( application.getServerInfo() );
  47.       out.write("</title>\r\n");
  48.       out.write("    <style type=\"text/css\">\r\n");
  49.       out.write("      <!--\r\n");
  50.       out.write("        body {\r\n");
  51.       out.write("            color: #000000;\r\n");
  52.       out.write("            background-color: #FFFFFF;\r\n");
  53.       out.write("            font-family: Arial, \"Times New Roman\", Times;\r\n");
  54.       out.write("            font-size: 16px;\r\n");
  55.       out.write("        }\r\n");
  56.       out.write("\r\n");
  57.       out.write("        A:link {\r\n");
  58.       out.write("            color: blue\r\n");
  59.       out.write("        }\r\n");
  60.       out.write("\r\n");
  61.       out.write("        A:visited {\r\n");
  62.       out.write("            color: blue\r\n");
  63.       out.write("        }\r\n");
  64.       out.write("\r\n");
  65.       out.write("        td {\r\n");
  66.       out.write("            color: #000000;\r\n");
  67.       out.write("            font-family: Arial, \"Times New Roman\", Times;\r\n");
  68.       out.write("            font-size: 16px;\r\n");
  69.       out.write("        }\r\n");
  70.       out.write("\r\n");
  71.       out.write("        .code {\r\n");
  72.       out.write("            color: #000000;\r\n");
  73.       out.write("            font-family: \"Courier New\", Courier;\r\n");
  74.       out.write("            font-size: 16px;\r\n");
  75.       out.write("        }\r\n");
  76.       out.write("      -->\r\n");
  77.       out.write("    </style>\r\n");
  78.       out.write("</head>\r\n");
  79.       out.write("\r\n");
  80.       out.write("<body>\r\n");
  81.       out.write("\r\n");
  82.       out.write("<!-- Header -->\r\n");
  83.       out.write("<table width=\"100%\">\r\n");
  84.       out.write("    <tr>\r\n");
  85.       out.write("        <td align=\"left\" width=\"130\"><a href=\"http://jakarta.apache.org/tomcat/index.html\"><img src=\"tomcat.gif\" height=\"92\" width=\"130\" border=\"0\" alt=\"The Mighty Tomcat - MEOW!\"></td>\r\n");
  86.       out.write("        <td align=\"left\" valign=\"top\">\r\n");
  87.       out.write("            <table>\r\n");
  88.       out.write("                <tr><td align=\"left\" valign=\"top\"><b>");
  89.       out.print( application.getServerInfo() );
  90.       out.write("</b></td></tr>\r\n");
  91.       out.write("            </table>\r\n");
  92.       out.write("        </td>\r\n");
  93.       out.write("        <td align=\"right\"><a href=\"http://jakarta.apache.org/\"><img src=\"jakarta-banner.gif\" height=\"48\" width=\"505\" border=\"0\" alt=\"The Jakarta Project\"></a></td>\r\n");
  94.       out.write("    </tr>\r\n");
  95.       out.write("</table>\r\n");
  96.       out.write("\r\n");
  97.       out.write("<br>\r\n");
  98.       out.write("\r\n");
  99.       out.write("<table>\r\n");
  100.       out.write("    <tr>\r\n");
  101.       out.write("\r\n");
  102.       out.write("        <!-- Table of Contents -->\r\n");
  103.       out.write("        <td valign=\"top\">\r\n");
  104.       out.write("            <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\" bordercolor=\"#000000\">\r\n");
  105.       out.write("                <tr>\r\n");
  106.       out.write("                    <td bgcolor=\"#D2A41C\" bordercolor=\"#000000\" align=\"left\" nowrap>\r\n");
  107.       out.write("                        <font face=\"Verdana\" size=\"+1\"><i>Administration</i>      </font>\r\n");
  108.       out.write("                    </td>\r\n");
  109.       out.write("                </tr>\r\n");
  110.       out.write("                <tr>\r\n");
  111.       out.write("                    <td bgcolor=\"#FFDC75\" bordercolor=\"#000000\" nowrap>\r\n");
  112.       out.write("                        <a href=\"manager/status\">Status</a><br>\r\n");
  113.       out.write("                        <a href=\"admin\">Tomcat Administration</a><br>\r\n");
  114.       out.write("                        <a href=\"manager/html\">Tomcat Manager</a><br>\r\n");
  115.       out.write("                         \r\n");
  116.       out.write("                    </td>\r\n");
  117.       out.write("                </tr>\r\n");
  118.       out.write("            </table>\r\n");
  119.       out.write("            <br>\r\n");
  120.       out.write("            <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\" bordercolor=\"#000000\">\r\n");
  121.       out.write("                <tr>\r\n");
  122.       out.write("                    <td bgcolor=\"#D2A41C\" bordercolor=\"#000000\" align=\"left\" nowrap>\r\n");
  123.       out.write("                        <font face=\"Verdana\" size=\"+1\"><i>Documentation</i>      </font>\r\n");
  124.       out.write("                    </td>\r\n");
  125.       out.write("                </tr>\r\n");
  126.       out.write("                <tr>\r\n");
  127.       out.write("                    <td bgcolor=\"#FFDC75\" bordercolor=\"#000000\" nowrap>\r\n");
  128.       out.write("                        <a href=\"RELEASE-NOTES.txt\">Release Notes</a><br>\r\n");
  129.       out.write("                        <a href=\"tomcat-docs\">Tomcat Documentation</a><br>\r\n");
  130.       out.write("                         \r\n");
  131.       out.write("                    </td>\r\n");
  132.       out.write("                </tr>\r\n");
  133.       out.write("            </table>\r\n");
  134.       out.write("            <br>\r\n");
  135.       out.write("            <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\" bordercolor=\"#000000\">\r\n");
  136.       out.write("                <tr>\r\n");
  137.       out.write("                    <td bgcolor=\"#D2A41C\" bordercolor=\"#000000\" align=\"left\" nowrap>\r\n");
  138.       out.write("                        <font face=\"Verdana\" size=\"+1\"><i>Tomcat Online</i>      </font>\r\n");
  139.       out.write("                    </td>\r\n");
  140.       out.write("                </tr>\r\n");
  141.       out.write("                <tr>\r\n");
  142.       out.write("                    <td bgcolor=\"#FFDC75\" bordercolor=\"#000000\" nowrap>\r\n");
  143.       out.write("                        <a href=\"http://jakarta.apache.org/tomcat/\">Home Page</a><br>\r\n");
  144.       out.write("                        <a href=\"http://jakarta.apache.org/tomcat/bugreport.html\">Bug Database</a><br>\r\n");
  145.       out.write("                        <a href=\"http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&resolution=LATER&resolution=REMIND&resolution=---&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&product=Tomcat+5&short_desc=&short_desc_type=allwordssubstr&long_desc=&long_desc_type=allwordssubstr&bug_file_loc=&bug_file_loc_type=allwordssubstr&keywords=&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&order=%27Importance%27\">Open Bugs</a><br>\r\n");
  146.       out.write("                        <a href=\"http://nagoya.apache.org/eyebrowse/SummarizeList?listId=88\">Users Mailing List</a><br>\r\n");
  147.       out.write("                        <a href=\"http://nagoya.apache.org/eyebrowse/SummarizeList?listId=46\">Developers Mailing List</a><br>\r\n");
  148.       out.write("                        <a href=\"irc://irc.freenode.net/#tomcat\">IRC</a><br>\r\n");
  149.       out.write("                         \r\n");
  150.       out.write("                    </td>\r\n");
  151.       out.write("                </tr>\r\n");
  152.       out.write("            </table>\r\n");
  153.       out.write("            <br>\r\n");
  154.       out.write("            <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\" bordercolor=\"#000000\">\r\n");
  155.       out.write("                <tr>\r\n");
  156.       out.write("                    <td bgcolor=\"#D2A41C\" bordercolor=\"#000000\" align=\"left\" nowrap>\r\n");
  157.       out.write("                        <font face=\"Verdana\" size=\"+1\"><i>Examples</i>      </font>\r\n");
  158.       out.write("                    </td>\r\n");
  159.       out.write("                </tr>\r\n");
  160.       out.write("                <tr>\r\n");
  161.       out.write("                    <td bgcolor=\"#FFDC75\" bordercolor=\"#000000\" nowrap>\r\n");
  162.       out.write("                        <a href=\"jsp-examples/\">JSP Examples</a><br>\r\n");
  163.       out.write("                        <a href=\"servlets-examples/\">Servlet Examples</a><br>\r\n");
  164.       out.write("                        <a href=\"webdav/\">WebDAV capabilities</a><br>\r\n");
  165.       out.write("                         \r\n");
  166.       out.write("                    </td>\r\n");
  167.       out.write("                </tr>\r\n");
  168.       out.write("            </table>\r\n");
  169.       out.write("            <br>\r\n");
  170.       out.write("            <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\" bordercolor=\"#000000\">\r\n");
  171.       out.write("                <tr>\r\n");
  172.       out.write("                    <td bgcolor=\"#D2A41C\" bordercolor=\"#000000\" align=\"left\" nowrap>\r\n");
  173.       out.write("                        <font face=\"Verdana\" size=\"+1\"><i>Miscellaneous</i>      </font>\r\n");
  174.       out.write("                    </td>\r\n");
  175.       out.write("                </tr>\r\n");
  176.       out.write("                <tr>\r\n");
  177.       out.write("                    <td bgcolor=\"#FFDC75\" bordercolor=\"#000000\" nowrap>\r\n");
  178.       out.write("                        <a href=\"http://java.sun.com/products/jsp\">Sun's Java Server Pages Site</a><br>\r\n");
  179.       out.write("                        <a href=\"http://java.sun.com/products/servlet\">Sun's Servlet Site</a><br>\r\n");
  180.       out.write("                         \r\n");
  181.       out.write("                    </td>\r\n");
  182.       out.write("                </tr>\r\n");
  183.       out.write("            </table>\r\n");
  184.       out.write("        </td>\r\n");
  185.       out.write("\r\n");
  186.       out.write("        <td>     </td>\r\n");
  187.       out.write("\r\n");
  188.       out.write("        <!-- Body -->\r\n");
  189.       out.write("        <td align=\"left\" valign=\"top\">\r\n");
  190.       out.write("            <p><center><b>If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!</b></center></p>\r\n");
  191.       out.write("\r\n");
  192.       out.write("            <p>As you may have guessed by now, this is the default Tomcat home page. It can be found on the local filesystem at:\r\n");
  193.       out.write("            <blockquote>\r\n");
  194.       out.write("                <p class=\"code\">$CATALINA_HOME/webapps/ROOT/index.jsp</p>\r\n");
  195.       out.write("            </blockquote>\r\n");
  196.       out.write("            </p>\r\n");
  197.       out.write("\r\n");
  198.       out.write("            <p>where \"$CATALINA_HOME\" is the root of the Tomcat installation directory. If you're seeing this page, and you don't think you should be, then either you're either a user who has arrived at new installation of Tomcat, or you're an administrator who hasn't got his/her setup quite right. Providing the latter is the case, please refer to the <a href=\"tomcat-docs\">Tomcat Documentation</a> for more detailed setup and administration information than is found in the INSTALL file.</p>\r\n");
  199.       out.write("\r\n");
  200.       out.write("            <p><b>NOTE: For security reasons, using the administration webapp\r\n");
  201.       out.write("            is restricted to users with role \"admin\". The manager webapp\r\n");
  202.       out.write("            is restricted to users with role \"manager\".</b>\r\n");
  203.       out.write("            Users are defined in <code>$CATALINA_HOME/conf/tomcat-users.xml</code>.</p>\r\n");
  204.       out.write("\r\n");
  205.       out.write("            <p>Included with this release are a host of sample Servlets and JSPs (with associated source code), extensive documentation (including the Servlet 2.4 and JSP 2.0 API JavaDoc), and an introductory guide to developing web applications.</p>\r\n");
  206.       out.write("\r\n");
  207.       out.write("            <p>Tomcat mailing lists are available at the Jakarta project web site:</p>\r\n");
  208.       out.write("\r\n");
  209.       out.write("           <ul>\r\n");
  210.       out.write("               <li><b><a href=\"mailto:tomcat-user-subscribe@jakarta.apache.org\">tomcat-user@jakarta.apache.org</a></b> for general questions related to configuring and using Tomcat</li>\r\n");
  211.       out.write("               <li><b><a href=\"mailto:tomcat-dev-subscribe@jakarta.apache.org\">tomcat-dev@jakarta.apache.org</a></b> for developers working on Tomcat</li>\r\n");
  212.       out.write("           </ul>\r\n");
  213.       out.write("\r\n");
  214.       out.write("            <p>Thanks for using Tomcat!</p>\r\n");
  215.       out.write("\r\n");
  216.       out.write("            <p align=\"right\"><font size=-1><img src=\"tomcat-power.gif\" width=\"77\" height=\"80\"></font><br>\r\n");
  217.       out.write("             \r\n");
  218.       out.write("            <font size=-1>Copyright © 1999-2003 Apache Software Foundation</font><br>\r\n");
  219.       out.write("            <font size=-1>All Rights Reserved</font> <br>\r\n");
  220.       out.write("             </p>\r\n");
  221.       out.write("            <p align=\"right\"> </p>\r\n");
  222.       out.write("\r\n");
  223.       out.write("        </td>\r\n");
  224.       out.write("\r\n");
  225.       out.write("    </tr>\r\n");
  226.       out.write("</table>\r\n");
  227.       out.write("\r\n");
  228.       out.write("</body>\r\n");
  229.       out.write("</html>\r\n");
  230.     } catch (Throwable t) {
  231.       if (!(t instanceof SkipPageException)){
  232.         out = _jspx_out;
  233.         if (out != null && out.getBufferSize() != 0)
  234.           out.clearBuffer();
  235.         if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
  236.       }
  237.     } finally {
  238.       if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
  239.     }
  240.   }
  241. }
  242.