enoent.jsp revision 1281
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<%--
b0e8629055a766d4555a005a283c2889a5974945Mark AndrewsCDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsThe contents of this file are subject to the terms of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCommon Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsYou may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSee LICENSE.txt included in this distribution for the specific
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslanguage governing permissions and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsWhen distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsfile and include the License file at LICENSE.txt.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsIf applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsfields enclosed by brackets "[]" replaced with your own identifying
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinformation: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
12351e0500dff39f56844401fd191a36bcc4a7adMark AndrewsCDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsPortions Copyright 2011 Jens Elkner.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews--%><%@page session="false" isErrorPage="true" import="
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsorg.opensolaris.opengrok.web.Prefix,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsorg.opensolaris.opengrok.configuration.RuntimeEnvironment"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews %><%
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews/* ---------------------- enoent.jsp start --------------------- */
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews{
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews cfg = PageConfig.get(request);
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews cfg.setTitle("File not found");
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews String context = request.getContextPath();
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews cfg.getEnv().setUrlPrefix(context + Prefix.SEARCH_R + "?");
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews String configError = "";
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews if (cfg.getSourceRootPath().isEmpty()) {
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews configError = "CONFIGURATION parameter has not been configured in "
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews + "web.xml! Please configure your webapp.";
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews } else if (!cfg.getEnv().getSourceRootFile().isDirectory()) {
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews configError = "The source root specified in your configuration does "
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews + "not point to a valid directory! Please configure your webapp.";
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews }
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews%><%@
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude file="httpheader.jspf"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews%><body>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<div id="page">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <div id="whole_header">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <div id="header"><%@
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude file="pageheader.jspf"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews %></div>
12351e0500dff39f56844401fd191a36bcc4a7adMark Andrews <div id="Masthead"></div>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <div id="sbar"><%@
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude file="menu.jspf"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews %></div>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </div>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <h3 class="error">Error: File not found!</h3>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <p>The requested resource is not available. <%= configError %></p>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<%
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews}
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews/* ---------------------- enoent.jsp end --------------------- */
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews%><%@
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude file="foot.jspf"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews%>