enoent.jsp revision 78
2N/A<%--
2N/ACDDL HEADER START
2N/A
2N/AThe contents of this file are subject to the terms of the
2N/ACommon Development and Distribution License (the "License").
2N/AYou may not use this file except in compliance with the License.
2N/A
2N/ASee LICENSE.txt included in this distribution for the specific
2N/Alanguage governing permissions and limitations under the License.
2N/A
2N/AWhen distributing Covered Code, include this CDDL HEADER in each
2N/Afile and include the License file at LICENSE.txt.
2N/AIf applicable, add the following below this CDDL HEADER, with the
2N/Afields enclosed by brackets "[]" replaced with your own identifying
2N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
2N/A
2N/ACDDL HEADER END
2N/A
2N/ACopyright 2005 Sun Microsystems, Inc. All rights reserved.
2N/AUse is subject to license terms.
58N/A
2N/Aident "@(#)enoent.jsp 1.3 05/12/02 SMI"
2N/A
2N/A--%><%@ page import = "javax.servlet.*,
2N/Ajavax.servlet.http.*,
23N/Ajava.lang.*,
23N/Ajava.io.*,
23N/Aorg.opensolaris.opengrok.configuration.*"
23N/A%><%@ page session="false" %><%@ page isErrorPage="true" %><%
23N/A
32N/AString context = request.getContextPath();
32N/ARuntimeEnvironment env = RuntimeEnvironment.getInstance();
32N/Aenv.register();
34N/AString rawSource = env.getSourceRootPath();
32N/AString configError = "";
34N/Aif (rawSource.equals("")) {
32N/A configError = "SRC_ROOT parameter has not been configured in web.xml! Please configure your webapp.";
32N/A} else {
58N/A if (!env.getSourceRootFile().isDirectory()) {
32N/A configError = "SRC_ROOT parameter in web.xml does not point to a valid directory! Please configure your webapp.";
225N/A }
225N/A}
225N/A%><?xml version="1.0" encoding="iso-8859-1"?>
225N/A<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
225N/A<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
225N/A<head>
225N/A <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
225N/A <title>File not found</title>
225N/A <link rel="icon" href="<%=context%>/img/icon.png" type="image/png"/>
225N/A <link rel="stylesheet" type="text/css" href="<%=context%>/style.css"/>
2N/A <link rel="stylesheet" type="text/css" href="<%=context%>/print.css" media="print" />
38N/A <link rel="alternate stylesheet" type="text/css" media="all" title="Paper White" href="<%=context%>/print.css"/>
38N/A</head>
38N/A<body><div id="page">
38N/A<form action="<%=context%>/search">
38N/A <div id="header">
38N/A <%= getServletContext().getInitParameter("HEADER") %>
38N/A </div>
83N/A<div id="Masthead"></div>
83N/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>
99N/A<h3 class="error">Error 404: File not found!</h3>
2N/AThe requested resource is not available. <%=configError%>
92N/A<div style="display:block;height:10em">&nbsp;</div><%@include file="foot.jspf"%>
92N/A