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