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