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