enoent.jsp revision 9017f50c7d526d11bae57f42ed8023dfba9ed1d1
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews<%--
205c10066a0acfeac52d1a135671f41d207b8557Automatic UpdaterCDDL HEADER START
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic UpdaterThe contents of this file are subject to the terms of the
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic UpdaterCommon Development and Distribution License (the "License").
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic UpdaterYou may not use this file except in compliance with the License.
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic UpdaterSee LICENSE.txt included in this distribution for the specific
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updaterlanguage governing permissions and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
ac4e70ff8955669341f435bc0a734a17c01af124Mark AndrewsWhen distributing Covered Code, include this CDDL HEADER in each
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updaterfile and include the License file at LICENSE.txt.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonIf applicable, add the following below this CDDL HEADER, with the
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updaterfields enclosed by brackets "[]" replaced with your own identifying
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updaterinformation: Portions Copyright [yyyy] [name of copyright owner]
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCDDL HEADER END
58be84825d7f5de30e50eb7206b37227ecd8055bAutomatic Updater
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic UpdaterCopyright 2005 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsUse is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updaterident "@(#)enoent.jsp 1.3 05/12/02 SMI"
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews--%><%@ page import = "javax.servlet.*,
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterjavax.servlet.http.*,
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsjava.lang.*,
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterjava.io.*,
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonorg.opensolaris.opengrok.configuration.*"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater session="false" %><%@ page isErrorPage="true" %><%
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonString context = request.getContextPath();
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterRuntimeEnvironment environment = RuntimeEnvironment.getInstance();
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterenvironment.setUrlPrefix(context + "/s?");
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterenvironment.register();
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntString rawSource = environment.getSourceRootPath();
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterString configError = "";
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterif (rawSource.equals("")) {
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt configError = "CONFIGURATION parameter has not been configured in web.xml! Please configure your webapp.";
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater} else {
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater if (!environment.getSourceRootFile().isDirectory()) {
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater configError = "The source root specified in your configuration does not point to a valid directory! Please configure your webapp.";
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt }
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater}
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterString pageTitle = "File not found";
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt%><%@ include file="httpheader.jspf" %>
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater<body><div id="page">
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater<form action="<%=context%>/search">
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater <div id="header">
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater <%@ include file="pageheader.jspf" %>
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater </div>
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater<div id="Masthead"></div>
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater<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>
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater<h3 class="error">Error 404: File not found!</h3>
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterThe requested resource is not available. <%=configError%>
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater<div style="display:block;height:10em">&nbsp;</div><%@include file="foot.jspf"%>
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater