enoent.jsp revision 1186
1N/A<%--
1N/ACDDL HEADER START
1N/A
1N/AThe contents of this file are subject to the terms of the
1N/ACommon Development and Distribution License (the "License").
1N/AYou may not use this file except in compliance with the License.
1N/A
1N/ASee LICENSE.txt included in this distribution for the specific
1N/Alanguage governing permissions and limitations under the License.
1N/A
1N/AWhen distributing Covered Code, include this CDDL HEADER in each
1N/Afile and include the License file at LICENSE.txt.
1N/AIf applicable, add the following below this CDDL HEADER, with the
1N/Afields enclosed by brackets "[]" replaced with your own identifying
1N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
1N/A
1N/ACDDL HEADER END
1N/A
1N/ACopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
1N/APortions Copyright 2011 Jens Elkner.
1N/A
1N/A--%><%@page session="false" isErrorPage="true" import="
1N/Aorg.opensolaris.opengrok.web.Prefix,
1N/Aorg.opensolaris.opengrok.configuration.RuntimeEnvironment"
1N/A %><%
1N/A/* ---------------------- enoent.jsp start --------------------- */
1N/A{
1N/A cfg = PageConfig.get(request);
1N/A cfg.setTitle("File not found");
1N/A
1N/A String context = request.getContextPath();
1N/A cfg.getEnv().setUrlPrefix(context + Prefix.SEARCH_R + "?");
1N/A String configError = "";
1N/A if (cfg.getSourceRootPath().isEmpty()) {
1N/A configError = "CONFIGURATION parameter has not been configured in "
1N/A + "web.xml! Please configure your webapp.";
1N/A } else if (!cfg.getEnv().getSourceRootFile().isDirectory()) {
1N/A configError = "The source root specified in your configuration does "
1N/A + "not point to a valid directory! Please configure your webapp.";
1N/A }
1N/A%><%@
1N/A
1N/Ainclude file="httpheader.jspf"
1N/A
1N/A%><body>
1N/A<div id="page">
1N/A <div id="whole_header">
1N/A <div id="header"><%@
1N/A
1N/Ainclude file="pageheader.jspf"
1N/A
1N/A %></div>
1N/A <div id="Masthead"></div>
1N/A <div id="sbar"><%@
1N/A
1N/Ainclude file="menu.jspf"
1N/A
1N/A %></div>
1N/A </div>
1N/A <h3 class="error">Error: File not found!</h3>
1N/A <p>The requested resource is not available. <%= configError %></p>
1N/A<%
1N/A}
1N/A/* ---------------------- enoent.jsp end --------------------- */
1N/A%><%@
1N/A
1N/Ainclude file="foot.jspf"
1N/A
1N/A%>