error.jsp revision 7
1004N/A<%--
1004N/ACDDL HEADER START
1004N/A
1004N/AThe contents of this file are subject to the terms of the
1004N/ACommon Development and Distribution License (the "License").
1004N/AYou may not use this file except in compliance with the License.
1004N/A
1004N/ASee LICENSE.txt included in this distribution for the specific
1004N/Alanguage governing permissions and limitations under the License.
1004N/A
1004N/AWhen distributing Covered Code, include this CDDL HEADER in each
1004N/Afile and include the License file at LICENSE.txt.
1004N/AIf applicable, add the following below this CDDL HEADER, with the
1004N/Afields enclosed by brackets "[]" replaced with your own identifying
1004N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
1004N/A
1004N/ACDDL HEADER END
1004N/A
1004N/ACopyright 2005 Sun Microsystems, Inc. All rights reserved.
1004N/AUse is subject to license terms.
1076N/A
1004N/Aident "%Z%%M% %I% %E% SMI"
1004N/A
1004N/A--%><%@ page import = "javax.servlet.*,
1004N/Ajava.lang.Integer,
1004N/Ajavax.servlet.http.*,
1004N/Ajava.util.Hashtable,
1004N/Ajava.util.Vector,
1004N/Ajava.util.Date,
1004N/Ajava.util.ArrayList,
1004N/Ajava.lang.*,
1004N/Ajava.io.*,
1004N/Ajava.io.StringReader,
1004N/Aorg.apache.lucene.spell.*,
1004N/Aorg.apache.lucene.analysis.*,
1004N/Aorg.apache.lucene.document.*,
1076N/Aorg.apache.lucene.index.*,
1004N/Aorg.apache.lucene.search.*,
1004N/Aorg.apache.lucene.queryParser.*"
1004N/A%><%@ page session="false" %><%@ page isErrorPage="true" %><%
1004N/AString context = request.getContextPath();
1004N/AString rawSource = getServletContext().getInitParameter("SRC_ROOT");
1004N/AString configError = "";
1004N/Aif ("".equals(rawSource)) {
1004N/A configError = "SRC_ROOT parameter has not been configured in web.xml! Please configure your webapp.";
1004N/A} else {
1004N/A if(!(new File(rawSource)).isDirectory()) {
1004N/A configError = "SRC_ROOT parameter in web.xml does not point to a valid directory! Please configure your webapp.";
1004N/A }
1004N/A}
1004N/A%><?xml version="1.0" encoding="iso-8859-1"?>
1004N/A<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1004N/A<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
1004N/A<head>
1004N/A <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
1004N/A <title>Error!</title>
1004N/A <link rel="icon" href="<%=context%>/img/icon.png" type="image/png"/>
1076N/A <link rel="stylesheet" type="text/css" href="<%=context%>/style.css"/>
1004N/A <link rel="stylesheet" type="text/css" href="<%=context%>/print.css" media="print" />
1004N/A <link rel="alternate stylesheet" type="text/css" media="all" title="Paper White" href="<%=context%>/print.css"/>
1004N/A</head>
1004N/A<body>
1004N/A<div id="page">
1004N/A <div id="header">
1004N/A <%= getServletContext().getInitParameter("HEADER") %>
1004N/A </div>
1004N/A<div id="Masthead"></div>
1004N/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>
1004N/A<h3 class="error">There was an error!</h3>
1004N/A<%=configError%><%
1004N/Aexception.printStackTrace();
1004N/A%>
1004N/A<%=exception.getMessage()%>
1004N/A<%@include file="foot.html"%>
1004N/A