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