1 <%-- 2 CDDL HEADER START 3 4 The contents of this file are subject to the terms of the 5 Common Development and Distribution License (the "License"). 6 You may not use this file except in compliance with the License. 7 8 See LICENSE.txt included in this distribution for the specific 9 language governing permissions and limitations under the License. 10 11 When distributing Covered Code, include this CDDL HEADER in each 12 file and include the License file at LICENSE.txt. 13 If applicable, add the following below this CDDL HEADER, with the 14 fields enclosed by brackets "[]" replaced with your own identifying 15 information: Portions Copyright [yyyy] [name of copyright owner] 16 17 CDDL HEADER END 18 19 Copyright 2005 Sun Microsystems, Inc. All rights reserved. 20 Use is subject to license terms. 21 22 ident "@(#)enoent.jsp 1.3 05/12/02 SMI" 23 24 --%><%@ page import = "javax.servlet.*, 25 javax.servlet.http.*, 26 java.lang.*, 27 java.io.*, 28 org.opensolaris.opengrok.configuration.*" 29 session="false" %><%@ page isErrorPage="true" %><% 30 31 String context = request.getContextPath(); 32 RuntimeEnvironment environment = RuntimeEnvironment.getInstance(); 33 environment.setUrlPrefix(context + "/s?"); 34 environment.register(); 35 String rawSource = environment.getSourceRootPath(); 36 String configError = ""; 37 if (rawSource.equals("")) { 38 configError = "SRC_ROOT parameter has not been configured in web.xml! Please configure your webapp."; 39 } else { 40 if (!environment.getSourceRootFile().isDirectory()) { 41 configError = "SRC_ROOT parameter in web.xml does not point to a valid directory! Please configure your webapp."; 42 } 43 } 44 String pageTitle = "File not found"; 45 %><%@ include file="httpheader.jspf" %> 46 <body><div id="page"> 47 <form action="<%=context%>/search"> 48 <div id="header"> 49 <%@ include file="pageheader.jspf" %> 50 </div> 51 <div id="Masthead"></div> 52 <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> 53 <h3 class="error">Error 404: File not found!</h3> 54 The requested resource is not available. <%=configError%> 55 <div style="display:block;height:10em"> </div><%@include file="foot.jspf"%> 56