enoent.jsp revision 1105
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
1105N/ACopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A
0N/A--%><%@ page import = "javax.servlet.*,
0N/Ajavax.servlet.http.*,
0N/Ajava.lang.*,
78N/Ajava.io.*,
78N/Aorg.opensolaris.opengrok.configuration.*"
144N/A session="false" %><%@ page isErrorPage="true" %><%
0N/A
0N/AString context = request.getContextPath();
144N/ARuntimeEnvironment environment = RuntimeEnvironment.getInstance();
144N/Aenvironment.setUrlPrefix(context + "/s?");
144N/Aenvironment.register();
144N/AString rawSource = environment.getSourceRootPath();
0N/AString configError = "";
0N/Aif (rawSource.equals("")) {
731N/A configError = "CONFIGURATION parameter has not been configured in web.xml! Please configure your webapp.";
0N/A} else {
144N/A if (!environment.getSourceRootFile().isDirectory()) {
731N/A configError = "The source root specified in your configuration does not point to a valid directory! Please configure your webapp.";
0N/A }
0N/A}
144N/AString pageTitle = "File not found";
144N/A%><%@ include file="httpheader.jspf" %>
0N/A<body><div id="page">
0N/A<form action="<%=context%>/search">
0N/A <div id="header">
144N/A <%@ include file="pageheader.jspf" %>
0N/A </div>
0N/A<div id="Masthead"></div>
1105N/A<div id="bar"><a id="home" href="<%=context%>/">Home</a> | <input id="search" name="q" class="q"/> <input type="submit" value="Search" class="submit"/> </div>
0N/A<h3 class="error">Error 404: File not found!</h3>
0N/AThe requested resource is not available. <%=configError%>
66N/A<div style="display:block;height:10em">&nbsp;</div><%@include file="foot.jspf"%>