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