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