enoent.jsp revision 5feb9d4ec8870e9b3bec8aaaa30632851e99463b
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye<%--
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeCDDL HEADER START
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeThe contents of this file are subject to the terms of the
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeCommon Development and Distribution License (the "License").
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeYou may not use this file except in compliance with the License.
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeSee LICENSE.txt included in this distribution for the specific
9ec7787531611654e8f50932473aa48963eaba55Trond Norbyelanguage governing permissions and limitations under the License.
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeWhen distributing Covered Code, include this CDDL HEADER in each
9ec7787531611654e8f50932473aa48963eaba55Trond Norbyefile and include the License file at LICENSE.txt.
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeIf applicable, add the following below this CDDL HEADER, with the
9ec7787531611654e8f50932473aa48963eaba55Trond Norbyefields enclosed by brackets "[]" replaced with your own identifying
9ec7787531611654e8f50932473aa48963eaba55Trond Norbyeinformation: Portions Copyright [yyyy] [name of copyright owner]
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeCDDL HEADER END
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeCopyright 2005 Sun Microsystems, Inc. All rights reserved.
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeUse is subject to license terms.
9ec7787531611654e8f50932473aa48963eaba55Trond Norbye
9ec7787531611654e8f50932473aa48963eaba55Trond Norbyeident "@(#)enoent.jsp 1.3 05/12/02 SMI"
9b1dea974e126ecb07a1f6d6cf9d2b637c8a47a0Lubos Kosco
02508b90a0eace220eabd5ec85ff37e9009c6b16Lubos Kosco--%><%@ page import = "javax.servlet.*,
02508b90a0eace220eabd5ec85ff37e9009c6b16Lubos Koscojavax.servlet.http.*,
02508b90a0eace220eabd5ec85ff37e9009c6b16Lubos Koscojava.lang.*,
02508b90a0eace220eabd5ec85ff37e9009c6b16Lubos Koscojava.io.*"
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco%><%@ page session="false" %><%@ page isErrorPage="true" %><%
02508b90a0eace220eabd5ec85ff37e9009c6b16Lubos Kosco
981e542f40f5acaf95b69c5854e5ffb080204242Lubos KoscoString context = request.getContextPath();
981e542f40f5acaf95b69c5854e5ffb080204242Lubos KoscoString rawSource = getServletContext().getInitParameter("SRC_ROOT");
981e542f40f5acaf95b69c5854e5ffb080204242Lubos KoscoString configError = "";
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Koscoif (rawSource.equals("")) {
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco configError = "SRC_ROOT parameter has not been configured in web.xml! Please configure your webapp.";
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco} else {
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco if(!(new File(rawSource)).isDirectory()) {
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco configError = "SRC_ROOT parameter in web.xml does not point to a valid directory! Please configure your webapp.";
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco }
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco}
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco%><?xml version="1.0" encoding="iso-8859-1"?>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco<head>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco <title>File not found</title>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco <link rel="icon" href="<%=context%>/img/icon.png" type="image/png"/>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco <link rel="stylesheet" type="text/css" href="<%=context%>/style.css"/>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco <link rel="stylesheet" type="text/css" href="<%=context%>/print.css" media="print" />
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco <link rel="alternate stylesheet" type="text/css" media="all" title="Paper White" href="<%=context%>/print.css"/>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco</head>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco<body><div id="page">
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco<form action="<%=context%>/search">
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco <div id="header">
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco <%= getServletContext().getInitParameter("HEADER") %>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco </div>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco<div id="Masthead"></div>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco<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>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco<h3 class="error">Error 404: File not found!</h3>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos KoscoThe requested resource is not available. <%=configError%>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco<div style="display:block;height:10em">&nbsp;</div><%@include file="foot.jsp"%>
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco