error.jsp revision 0
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina<%--
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaCDDL HEADER START
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaThe contents of this file are subject to the terms of the
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaCommon Development and Distribution License (the "License").
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaYou may not use this file except in compliance with the License.
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaSee LICENSE.txt included in this distribution for the specific
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinalanguage governing permissions and limitations under the License.
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaWhen distributing Covered Code, include this CDDL HEADER in each
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinafile and include the License file at LICENSE.txt.
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaIf applicable, add the following below this CDDL HEADER, with the
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinafields enclosed by brackets "[]" replaced with your own identifying
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinainformation: Portions Copyright [yyyy] [name of copyright owner]
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaCDDL HEADER END
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaCopyright 2005 Sun Microsystems, Inc. All rights reserved.
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaUse is subject to license terms.
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinaident "%Z%%M% %I% %E% SMI"
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina--%><%@ page import = "javax.servlet.*,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinajava.lang.Integer,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinajavax.servlet.http.*,
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březinajava.util.Hashtable,
132e477d69e07e02fe6e4d668c0bb6226206474aPavel Březinajava.util.Vector,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinajava.util.Date,
beeef7f627a5ed9264de25ee4c76eb9620c1c984Pavel Březinajava.util.ArrayList,
beeef7f627a5ed9264de25ee4c76eb9620c1c984Pavel Březinajava.lang.*,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinajava.io.*,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinajava.io.StringReader,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinaorg.apache.lucene.spell.*,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinaorg.apache.lucene.analysis.*,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinaorg.apache.lucene.document.*,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinaorg.apache.lucene.index.*,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinaorg.apache.lucene.search.*,
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinaorg.apache.lucene.queryParser.*"
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina%><%@ page session="false" %><%@ page isErrorPage="true" %><%
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaString context = request.getContextPath();
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaString rawSource = getServletContext().getInitParameter("SRC_ROOT");
772199031f0ec687fa1fefd939206858c440e5a1Pavel BřezinaString configError = "";
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březinaif (rawSource.equals("")) {
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina configError = "SRC_ROOT parameter has not been configured in web.xml! Please configure your webapp.";
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina} else {
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina if(!(new File(rawSource)).isDirectory()) {
beeef7f627a5ed9264de25ee4c76eb9620c1c984Pavel Březina configError = "SRC_ROOT parameter in web.xml does not point to a valid directory! Please configure your webapp.";
beeef7f627a5ed9264de25ee4c76eb9620c1c984Pavel Březina }
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina}
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina%><?xml version="1.0" encoding="iso-8859-1"?>
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina<head>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina <title>Error!</title>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina <link rel="icon" href="<%=context%>/img/icon.png" type="image/png"/>
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina <link rel="stylesheet" type="text/css" href="<%=context%>/style.css"/>
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina <link rel="stylesheet" type="text/css" href="<%=context%>/print.css" media="print" />
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina <link rel="alternate stylesheet" type="text/css" media="all" title="Paper White" href="<%=context%>/print.css"/>
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina</head>
772199031f0ec687fa1fefd939206858c440e5a1Pavel Březina<body>
beeef7f627a5ed9264de25ee4c76eb9620c1c984Pavel Březina<div id="page">
beeef7f627a5ed9264de25ee4c76eb9620c1c984Pavel Březina<form action="<%=context%>/search">
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina <div id="header">
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina <%= getServletContext().getInitParameter("HEADER") %>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina </div>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina<div id="Masthead"></div>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina<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>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina<h3 class="error">There was an error!</h3>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina<%=configError%><%
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březinaexception.printStackTrace();
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina%>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina<%=exception.getMessage()%>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina<%@include file="foot.html"%>
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina