enoent.jsp revision 17b343cecb69da82215b124f39fed80167a6f2bd
0ad489b182ebb3789322345e22cf750f88ae167and<%--
0ad489b182ebb3789322345e22cf750f88ae167andCDDL HEADER START
0ad489b182ebb3789322345e22cf750f88ae167and
6b105b7e5113e82dc88a4545ff9095a72099801fhumbedoohThe contents of this file are subject to the terms of the
0ad489b182ebb3789322345e22cf750f88ae167andCommon Development and Distribution License (the "License").
0ad489b182ebb3789322345e22cf750f88ae167andYou may not use this file except in compliance with the License.
031b91a62d25106ae69d4693475c79618dd5e884fielding
031b91a62d25106ae69d4693475c79618dd5e884fieldingSee LICENSE.txt included in this distribution for the specific
031b91a62d25106ae69d4693475c79618dd5e884fieldinglanguage governing permissions and limitations under the License.
031b91a62d25106ae69d4693475c79618dd5e884fielding
031b91a62d25106ae69d4693475c79618dd5e884fieldingWhen distributing Covered Code, include this CDDL HEADER in each
031b91a62d25106ae69d4693475c79618dd5e884fieldingfile and include the License file at LICENSE.txt.
0ad489b182ebb3789322345e22cf750f88ae167andIf applicable, add the following below this CDDL HEADER, with the
0ad489b182ebb3789322345e22cf750f88ae167andfields enclosed by brackets "[]" replaced with your own identifying
0ad489b182ebb3789322345e22cf750f88ae167andinformation: Portions Copyright [yyyy] [name of copyright owner]
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andCDDL HEADER END
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andCopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167and--%><%@ page import = "javax.servlet.*,
0ad489b182ebb3789322345e22cf750f88ae167andjavax.servlet.http.*,
0ad489b182ebb3789322345e22cf750f88ae167andjava.lang.*,
0ad489b182ebb3789322345e22cf750f88ae167andjava.io.*,
0ad489b182ebb3789322345e22cf750f88ae167andorg.opensolaris.opengrok.configuration.*"
0ad489b182ebb3789322345e22cf750f88ae167and session="false" %><%@ page isErrorPage="true" %><%
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andString context = request.getContextPath();
0ad489b182ebb3789322345e22cf750f88ae167andRuntimeEnvironment environment = RuntimeEnvironment.getInstance();
0ad489b182ebb3789322345e22cf750f88ae167andenvironment.setUrlPrefix(context + Constants.searchR+"?");
0ad489b182ebb3789322345e22cf750f88ae167andenvironment.register();
0ad489b182ebb3789322345e22cf750f88ae167andString rawSource = environment.getSourceRootPath();
0ad489b182ebb3789322345e22cf750f88ae167andString configError = "";
0ad489b182ebb3789322345e22cf750f88ae167andif (rawSource.equals("")) {
0ad489b182ebb3789322345e22cf750f88ae167and configError = "CONFIGURATION parameter has not been configured in web.xml! Please configure your webapp.";
0ad489b182ebb3789322345e22cf750f88ae167and} else {
0ad489b182ebb3789322345e22cf750f88ae167and if (!environment.getSourceRootFile().isDirectory()) {
0ad489b182ebb3789322345e22cf750f88ae167and configError = "The source root specified in your configuration does not point to a valid directory! Please configure your webapp.";
0ad489b182ebb3789322345e22cf750f88ae167and }
0ad489b182ebb3789322345e22cf750f88ae167and}
0ad489b182ebb3789322345e22cf750f88ae167andString pageTitle = "File not found";
0ad489b182ebb3789322345e22cf750f88ae167and%><%@ include file="httpheader.jspf" %>
0ad489b182ebb3789322345e22cf750f88ae167and<body><div id="page">
0ad489b182ebb3789322345e22cf750f88ae167and<form action="<%=context+Constants.searchP%>">
0ad489b182ebb3789322345e22cf750f88ae167and <div id="header">
0ad489b182ebb3789322345e22cf750f88ae167and <%@ include file="pageheader.jspf" %>
0ad489b182ebb3789322345e22cf750f88ae167and </div>
0ad489b182ebb3789322345e22cf750f88ae167and<div id="Masthead"></div>
0ad489b182ebb3789322345e22cf750f88ae167and<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>
0ad489b182ebb3789322345e22cf750f88ae167and<h3 class="error">Error 404: File not found!</h3>
0ad489b182ebb3789322345e22cf750f88ae167andThe requested resource is not available. <%=configError%>
0ad489b182ebb3789322345e22cf750f88ae167and<div style="display:block;height:10em">&nbsp;</div><%@include file="foot.jspf"%>