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