File: /var/www/html/unitime/WebContent/error.jsp
<!DOCTYPE html>
<%--
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and
* limitations under the License.
*
--%>
<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8" isErrorPage="true"%>
<%@ taglib uri="http://www.unitime.org/tags-custom" prefix="tt" %>
<%@ page import="java.io.PrintWriter"%>
<%@ page import="org.unitime.timetable.util.Constants"%>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<TITLE>UniTime <%=Constants.VERSION%>| Error</TITLE>
<link type="text/css" rel="stylesheet" href="unitime/gwt/standard/standard.css">
<link type="text/css" rel="stylesheet" href="styles/unitime.css">
<link type="text/css" rel="stylesheet" href="styles/unitime-mobile.css">
<LINK rel="stylesheet" type="text/css" href="styles/timetabling.css" />
<tt:hasProperty name="tmtbl.custom.css">
<link rel="stylesheet" type="text/css" href="%tmtbl.custom.css%" />
</tt:hasProperty>
<script type="text/javascript" src="unitime/unitime.nocache.js"></script>
</HEAD>
<BODY class="bodyMain">
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex="-1" style="position:absolute;width:0;height:0;border:0"></iframe>
<iframe src="javascript:''" id="__printingFrame" tabIndex="-1" style="position:absolute;width:0;height:0;border:0"></iframe>
<span class='top-menu'>
<tt:notHasProperty name="unitime.menu.style" user="true">
<span id='UniTimeGWT:DynamicTopMenu' style="display: block; height: 23px;"></span>
</tt:notHasProperty>
<tt:propertyEquals name="unitime.menu.style" user="true" value="Dynamic On Top">
<span id='UniTimeGWT:DynamicTopMenu' style="display: block; height: 23px;"></span>
</tt:propertyEquals>
<tt:propertyEquals name="unitime.menu.style" user="true" value="Static On Top">
<span id='UniTimeGWT:TopMenu' style="display: block; height: 23px;"></span>
</tt:propertyEquals>
</span>
<tt:hasProperty name="tmtbl.global.info">
<div class='unitime-PageMessage'><tt:property name="tmtbl.global.info"/></div>
</tt:hasProperty>
<tt:hasProperty name="tmtbl.global.warn">
<div class='unitime-PageWarn'><tt:property name="tmtbl.global.warn"/></div>
</tt:hasProperty>
<tt:hasProperty name="tmtbl.global.error">
<div class='unitime-PageError'><tt:property name="tmtbl.global.error"/></div>
</tt:hasProperty>
<tt:page-warning prefix="tmtbl.page.warn." style="unitime-PageWarn" page="error"/>
<tt:page-warning prefix="tmtbl.page.info." style="unitime-PageMessage" page="error"/>
<tt:page-warning prefix="tmtbl.page.error." style="unitime-PageError" page="error"/>
<tt:offering-locks/>
<span class="unitime-Page"><span class='row'>
<span class='sidebar' id="unitime-SideMenu">
<tt:propertyEquals name="unitime.menu.style" user="true" value="Stack On Side">
<span id='UniTimeGWT:SideStackMenu' style="display: block;" ></span>
</tt:propertyEquals>
<tt:propertyEquals name="unitime.menu.style" user="true" value="Tree On Side">
<span id='UniTimeGWT:SideTreeMenu' style="display: block;" ></span>
</tt:propertyEquals>
<tt:propertyEquals name="unitime.menu.style" user="true" value="Static Stack On Side">
<span id='UniTimeGWT:StaticSideStackMenu' style="display: block;" ></span>
</tt:propertyEquals>
<tt:propertyEquals name="unitime.menu.style" user="true" value="Static Tree On Side">
<span id='UniTimeGWT:StaticSideTreeMenu' style="display: block;" ></span>
</tt:propertyEquals>
<tt:propertyEquals name="unitime.menu.style" user="true" value="Dynamic Stack On Side">
<span id='UniTimeGWT:SideStackMenu' style="display: block;" ></span>
</tt:propertyEquals>
<tt:propertyEquals name="unitime.menu.style" user="true" value="Dynamic Tree On Side">
<span id='UniTimeGWT:SideTreeMenu' style="display: block;" ></span>
</tt:propertyEquals>
<script type="text/javascript">
var sideMenu = document.getElementById("unitime-SideMenu").getElementsByTagName("span");
if (sideMenu.length > 0) {
var c = unescape(document.cookie);
var c_start = c.indexOf("UniTime:SideBar=");
if (c_start >= 0) {
c_start = c.indexOf("|W:", c_start) + 3;
var c_end = c.indexOf(";", c_start);
if (c_end < 0) c_end=c.length;
var width = c.substring(c_start, c_end);
sideMenu[0].style.width = width + "px";
// alert(c.substring(c.indexOf("UniTime:SideBar=") + 16, c_end));
} else {
sideMenu[0].style.width = (sideMenu[0].id.indexOf("StackMenu") >= 0 ? "172px" : "152px");
}
}
</script>
</span>
<span class='main'><span class='body' id="unitime-Page">
<span class="unitime-PageHeader" id="unitime-Header">
<span class="row">
<span class="mobile-menu-button" id='UniTimeGWT:MobileMenuButton'></span>
<a href='main.action' tabIndex="-1" class="logo"></a>
<span class="content">
<span id='UniTimeGWT:Title' class="title">Runtime Error</span>
<span class='unitime-Header'><span id='UniTimeGWT:Header' class="unitime-InfoPanel"></span></span>
<span id='UniTimeGWT:TitlePanel' class='navigation'></span>
</span>
</span>
</span>
<span class="mobile-menu" id='UniTimeGWT:MobileMenuPanel'></span>
<span class="content">
<% if (exception!=null) { %>
<TABLE style="unitime-MainTable">
<TR>
<TD colspan="2">
<DIV class="WelcomeRowHead">Error: <FONT color="#FF0000"><%=
(exception.getMessage() != null
&& exception.getMessage().indexOf("$jsp:") >= 0
? exception.getMessage()
.substring( exception.getMessage().indexOf(':') + 2 )
: exception.getMessage())%></FONT>
</DIV>
</TD>
</TR>
<TR align="left" valign="top">
<TD>Trace:</TD>
<TD><FONT color="898989" style="white-space: pre;"><% exception.printStackTrace(new PrintWriter(out));%></FONT></TD>
</TR>
</TABLE>
<% } %>
</span>
</span><span class='footer' id="unitime-Footer">
<span class="unitime-Footer">
<span class="row">
<span class="cell left">
<span id='UniTimeGWT:Version'></span>
<tt:time-stamp/>
</span>
<%-- WARNING: Changing or removing the copyright notice will violate the license terms. If you need a different licensing, please contact us at support@unitime.org --%>
<span class="cell middle"><tt:copy/></span>
<span class="cell right"><tt:registration/></span>
</span>
</span>
<tt:hasProperty name="tmtbl.page.disclaimer">
<span class='unitime-Disclaimer'><tt:property name="tmtbl.page.disclaimer"/></span>
</tt:hasProperty>
<span class="unitime-VisibleAriaStatus" id='UniTimeGWT:AriaStatus'></span>
</span>
</span></span></span>
</body>
</HTML>