enoent.jsp revision 1470
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley<%--
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCDDL HEADER START
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyThe contents of this file are subject to the terms of the
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCommon Development and Distribution License (the "License").
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyYou may not use this file except in compliance with the License.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleySee LICENSE.txt included in this distribution for the specific
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleylanguage governing permissions and limitations under the License.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyWhen distributing Covered Code, include this CDDL HEADER in each
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyfile and include the License file at LICENSE.txt.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyIf applicable, add the following below this CDDL HEADER, with the
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyfields enclosed by brackets "[]" replaced with your own identifying
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyinformation: Portions Copyright [yyyy] [name of copyright owner]
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCDDL HEADER END
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyPortions Copyright 2011 Jens Elkner.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley--%><%@page session="false" isErrorPage="true" import="
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyorg.opensolaris.opengrok.web.Prefix"
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley %><%
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley/* ---------------------- enoent.jsp start --------------------- */
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley{
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley cfg = PageConfig.get(request);
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley cfg.setTitle("File not found");
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley String context = request.getContextPath();
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley cfg.getConfig().setUrlPrefix(context + Prefix.SEARCH_R + '?');
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley String configError = "";
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley if (cfg.getSourceRootPath().isEmpty()) {
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley configError = "CONFIGURATION parameter has not been configured in "
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley + "web.xml! Please configure your webapp.";
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley } else if (!cfg.getConfig().getSourceRootFile().isDirectory()) {
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley configError = "The source root specified in your configuration does "
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley + "not point to a valid directory! Please configure your webapp.";
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley }
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley%><%@
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyinclude file="httpheader.jspf"
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley%><body class="yui3-skin-sam">
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley<div id="page">
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <div id="whole_header">
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <div id="header"><%@
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyinclude file="pageheader.jspf"
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley %></div>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <div id="Masthead"></div>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <div id="sbar"><%@
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyinclude file="menu.jspf"
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley %></div>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley </div>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <h3 class="error">Error: File not found!</h3>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <p>The requested resource is not available. <%= configError %></p>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley<%
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley}
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley/* ---------------------- enoent.jsp end --------------------- */
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley%><%@
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyinclude file="foot.jspf"
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley%>