error.jsp revision cc21f70af76aacd91b4b0cbe55a601883152900f
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCDDL HEADER START
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenThe contents of this file are subject to the terms of the
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCommon Development and Distribution License (the "License").
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenYou may not use this file except in compliance with the License.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenSee LICENSE.txt included in this distribution for the specific
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenlanguage governing permissions and limitations under the License.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenWhen distributing Covered Code, include this CDDL HEADER in each
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenfile and include the License file at LICENSE.txt.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenIf applicable, add the following below this CDDL HEADER, with the
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainenfields enclosed by brackets "[]" replaced with your own identifying
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Siraineninformation: Portions Copyright [yyyy] [name of copyright owner]
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenCDDL HEADER END
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenCopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen--%><%@ page import = "javax.servlet.*,
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen%><%@ page session="false" %><%@ page isErrorPage="true" %><%
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenString context = request.getContextPath();
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenRuntimeEnvironment environment = RuntimeEnvironment.getInstance();
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenString rawSource = environment.getSourceRootPath();
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenString configError = "";
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenif ("".equals(rawSource)) {
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen configError = "CONFIGURATION parameter has not been configured in web.xml! Please configure your webapp.";
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen if (environment.getSourceRootFile() == null || !environment.getSourceRootFile().isDirectory()) {
16f816d3f3c32ae3351834253f52ddd0212bcbf3Timo Sirainen configError = "The source root specified in your configuration does not point to a valid directory! Please configure your webapp.";
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenString pageTitle = "Error!";
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen%><%@ include file="httpheader.jspf" %>
84e1634acc701d14e358e27f1beff5ad74f5004aTimo Sirainen<div id="page">
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <div id="header">
98c1cf256927e254f0c092acd2ddcd7ea50bd009Timo Sirainen <%@ include file="pageheader.jspf" %>
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen<div id="Masthead"></div>
98c1cf256927e254f0c092acd2ddcd7ea50bd009Timo Sirainen<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>
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen<h3 class="error">There was an error!</h3>
9aa52288a4b53186d81b0ec9afa7d9e0a8ee8753Timo Sirainen<p><%=configError%>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen StringWriter wrt = new StringWriter();
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen PrintWriter prt = new PrintWriter(wrt);
98c1cf256927e254f0c092acd2ddcd7ea50bd009Timo Sirainen<%@include file="foot.jspf"%>