NIHVIVO-736 Modify JSPs to use the <vitro:confirmLoginStatus> custom JSP tag.

This commit is contained in:
jeb228 2010-10-14 19:10:21 +00:00
parent 0bd050a78b
commit 66559f58ab
16 changed files with 68 additions and 110 deletions

View file

@ -1,10 +1,9 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ page import="edu.cornell.mannlib.vedit.beans.LoginStatusBean" %>
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.Controllers" %>
<%@ page import="org.apache.log4j.*" %>
<%@ page import="java.util.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="vitro" uri="/WEB-INF/tlds/VitroUtils.tld" %>
<%--
This JSP will display all the log4j Logger objects, their
@ -14,11 +13,9 @@
Brian Cauros bdc34@cornell.edu
based on work by Volker Mentzner. --%>
<%
if (!LoginStatusBean.getBean(request).isLoggedInAtLeast(LoginStatusBean.DBA)) {
%><c:redirect url="<%= Controllers.LOGIN %>" /><%
}
<vitro:confirmLoginStatus level="DBA" bean="loginBean" />
<%
try {
String name;
Level[] levels = new Level[]