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