enoent.jsp revision 5feb9d4ec8870e9b3bec8aaaa30632851e99463b
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder<%--
306763c67bb99228487345b32ab8c5c6cd41f23cChristian MaederCDDL HEADER START
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder
306763c67bb99228487345b32ab8c5c6cd41f23cChristian MaederThe contents of this file are subject to the terms of the
306763c67bb99228487345b32ab8c5c6cd41f23cChristian MaederCommon Development and Distribution License (the "License").
306763c67bb99228487345b32ab8c5c6cd41f23cChristian MaederYou may not use this file except in compliance with the License.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder
306763c67bb99228487345b32ab8c5c6cd41f23cChristian MaederSee LICENSE.txt included in this distribution for the specific
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian Maederlanguage governing permissions and limitations under the License.
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian Maeder
679d3f541f7a9ede4079e045f7758873bb901872Till MossakowskiWhen distributing Covered Code, include this CDDL HEADER in each
679d3f541f7a9ede4079e045f7758873bb901872Till Mossakowskifile and include the License file at LICENSE.txt.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian MaederIf applicable, add the following below this CDDL HEADER, with the
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maederfields enclosed by brackets "[]" replaced with your own identifying
679d3f541f7a9ede4079e045f7758873bb901872Till Mossakowskiinformation: Portions Copyright [yyyy] [name of copyright owner]
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian Maeder
d21dd452cd68abade683103a5c0cfe6d02c5f17bTill MossakowskiCDDL HEADER END
d21dd452cd68abade683103a5c0cfe6d02c5f17bTill Mossakowski
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian MaederCopyright 2005 Sun Microsystems, Inc. All rights reserved.
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian MaederUse is subject to license terms.
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian Maeder
1b05bdb88b90d3c947351f262d7ae7d68f0a4a6fTill Mossakowskiident "@(#)enoent.jsp 1.3 05/12/02 SMI"
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian Maeder
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian Maeder--%><%@ page import = "javax.servlet.*,
f69658e57cba7ecb37c0d84181f4c563215c2534Till Mossakowskijavax.servlet.http.*,
f69658e57cba7ecb37c0d84181f4c563215c2534Till Mossakowskijava.lang.*,
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maederjava.io.*"
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder%><%@ page session="false" %><%@ page isErrorPage="true" %><%
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian Maeder
ba904a15082557e939db689fcfba0c68c9a4f740Christian MaederString context = request.getContextPath();
ba904a15082557e939db689fcfba0c68c9a4f740Christian MaederString rawSource = getServletContext().getInitParameter("SRC_ROOT");
d410c66e2c3e16d75ef1066b501a539b08682ac3Maciek MakowskiString configError = "";
d410c66e2c3e16d75ef1066b501a539b08682ac3Maciek Makowskiif (rawSource.equals("")) {
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian Maeder configError = "SRC_ROOT parameter has not been configured in web.xml! Please configure your webapp.";
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder} else {
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder if(!(new File(rawSource)).isDirectory()) {
e182d0ec56025d97d74829cac75ee31eec12b093Maciek Makowski configError = "SRC_ROOT parameter in web.xml does not point to a valid directory! Please configure your webapp.";
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder }
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder}
58b671de3fe578346fef9642ffa3c5a0a0edb3cbTill Mossakowski%><?xml version="1.0" encoding="iso-8859-1"?>
56cd0da55d058b262b1626ddcd78db6bd9a90551Christian Maeder<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder<head>
c616e681da8c052b62e14247fea522da099ac0e4Christian Maeder <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
1b05bdb88b90d3c947351f262d7ae7d68f0a4a6fTill Mossakowski <title>File not found</title>
38a1db3f9cedee9df49232bd524bcc82707480d5Christian Maeder <link rel="icon" href="<%=context%>/img/icon.png" type="image/png"/>
1b05bdb88b90d3c947351f262d7ae7d68f0a4a6fTill Mossakowski <link rel="stylesheet" type="text/css" href="<%=context%>/style.css"/>
21dae7237ac384abdb94a81e00b3f099873ec623Till Mossakowski <link rel="stylesheet" type="text/css" href="<%=context%>/print.css" media="print" />
21dae7237ac384abdb94a81e00b3f099873ec623Till Mossakowski <link rel="alternate stylesheet" type="text/css" media="all" title="Paper White" href="<%=context%>/print.css"/>
21dae7237ac384abdb94a81e00b3f099873ec623Till Mossakowski</head>
1b05bdb88b90d3c947351f262d7ae7d68f0a4a6fTill Mossakowski<body><div id="page">
a7f97f28aa8227408d4008e0b12a7bd925ef51feKlaus Luettich<form action="<%=context%>/search">
b0294d73dcefc502ddaa13e18b46103a5916971fTill Mossakowski <div id="header">
b0294d73dcefc502ddaa13e18b46103a5916971fTill Mossakowski <%= getServletContext().getInitParameter("HEADER") %>
1b05bdb88b90d3c947351f262d7ae7d68f0a4a6fTill Mossakowski </div>
1b05bdb88b90d3c947351f262d7ae7d68f0a4a6fTill Mossakowski<div id="Masthead"></div>
58b671de3fe578346fef9642ffa3c5a0a0edb3cbTill Mossakowski<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>
e379124f467e5d0ef7d3c0ca238bff0521f70831Till Mossakowski<h3 class="error">Error 404: File not found!</h3>
58b671de3fe578346fef9642ffa3c5a0a0edb3cbTill MossakowskiThe requested resource is not available. <%=configError%>
1b05bdb88b90d3c947351f262d7ae7d68f0a4a6fTill Mossakowski<div style="display:block;height:10em">&nbsp;</div><%@include file="foot.jsp"%>
a7f97f28aa8227408d4008e0b12a7bd925ef51feKlaus Luettich