enoent.jsp revision 1105
830N/A<%--
830N/ACDDL HEADER START
830N/A
830N/AThe contents of this file are subject to the terms of the
830N/ACommon Development and Distribution License (the "License").
830N/AYou may not use this file except in compliance with the License.
830N/A
830N/ASee LICENSE.txt included in this distribution for the specific
830N/Alanguage governing permissions and limitations under the License.
830N/A
830N/AWhen distributing Covered Code, include this CDDL HEADER in each
830N/Afile and include the License file at LICENSE.txt.
830N/AIf applicable, add the following below this CDDL HEADER, with the
830N/Afields enclosed by brackets "[]" replaced with your own identifying
830N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
830N/A
830N/ACDDL HEADER END
830N/A
830N/ACopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
830N/A
1415N/A--%><%@ page import = "javax.servlet.*,
830N/Ajavax.servlet.http.*,
839N/Ajava.lang.*,
830N/Ajava.io.*,
830N/Aorg.opensolaris.opengrok.configuration.*"
1300N/A session="false" %><%@ page isErrorPage="true" %><%
1258N/A
830N/AString context = request.getContextPath();
830N/ARuntimeEnvironment environment = RuntimeEnvironment.getInstance();
830N/Aenvironment.setUrlPrefix(context + "/s?");
830N/Aenvironment.register();
830N/AString rawSource = environment.getSourceRootPath();
830N/AString configError = "";
830N/Aif (rawSource.equals("")) {
830N/A configError = "CONFIGURATION parameter has not been configured in web.xml! Please configure your webapp.";
830N/A} else {
1244N/A if (!environment.getSourceRootFile().isDirectory()) {
1244N/A configError = "The source root specified in your configuration does not point to a valid directory! Please configure your webapp.";
830N/A }
1244N/A}
1244N/AString pageTitle = "File not found";
844N/A%><%@ include file="httpheader.jspf" %>
844N/A<body><div id="page">
830N/A<form action="<%=context%>/search">
830N/A <div id="header">
830N/A <%@ include file="pageheader.jspf" %>
830N/A </div>
830N/A<div id="Masthead"></div>
830N/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>
830N/A<h3 class="error">Error 404: File not found!</h3>
830N/AThe requested resource is not available. <%=configError%>
830N/A<div style="display:block;height:10em">&nbsp;</div><%@include file="foot.jspf"%>
830N/A