enoent.jsp revision 1281
325N/A<%--
325N/ACDDL HEADER START
325N/A
325N/AThe contents of this file are subject to the terms of the
943N/ACommon Development and Distribution License (the "License").
325N/AYou may not use this file except in compliance with the License.
325N/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"
325N/A %><%
325N/A/* ---------------------- enoent.jsp start --------------------- */
325N/A{
325N/A cfg = PageConfig.get(request);
493N/A cfg.setTitle("File not found");
325N/A
325N/A String context = request.getContextPath();
851N/A cfg.getEnv().setUrlPrefix(context + Prefix.SEARCH_R + "?");
325N/A String configError = "";
911N/A if (cfg.getSourceRootPath().isEmpty()) {
911N/A configError = "CONFIGURATION parameter has not been configured in "
911N/A + "web.xml! Please configure your webapp.";
911N/A } else if (!cfg.getEnv().getSourceRootFile().isDirectory()) {
325N/A configError = "The source root specified in your configuration does "
761N/A + "not point to a valid directory! Please configure your webapp.";
325N/A }
325N/A%><%@
325N/A
325N/Ainclude file="httpheader.jspf"
325N/A
325N/A%><body>
493N/A<div id="page">
493N/A <div id="whole_header">
947N/A <div id="header"><%@
325N/A
325N/Ainclude file="pageheader.jspf"
325N/A
493N/A %></div>
325N/A <div id="Masthead"></div>
761N/A <div id="sbar"><%@
761N/A
325N/Ainclude file="menu.jspf"
920N/A
920N/A %></div>
325N/A </div>
325N/A <h3 class="error">Error: File not found!</h3>
325N/A <p>The requested resource is not available. <%= configError %></p>
325N/A<%
970N/A}
970N/A/* ---------------------- enoent.jsp end --------------------- */
970N/A%><%@
325N/A
include file="foot.jspf"
%>