Add reporting servlet time execution
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Wed, 29 Jan 2014 08:04:02 +0000 (08:04 +0000)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Wed, 29 Jan 2014 08:04:02 +0000 (08:04 +0000)
webapp/view/reports/IPstatistics.jsp

index d0f90f4..b1d06cd 100644 (file)
@@ -4,7 +4,7 @@
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
-<%@page import="java.util.ArrayList"%>
+<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
 
 <html>
 <jsp:include page="../fragments/header.jsp" />
                <p style="font-weight:bold;">IP Statistics</p>
        </div>
        <div class="panel-body">
-
+<sec:authorize access="hasRole('ROLE_ADMIN')">
+               <p>Servlet execution time: ${timeExecution} milliseconds</p>
+</sec:authorize>
                <c:choose>
                <c:when test="${njobs == 0}">
                        <p>No IP with at least ${counter} jobs ever launched found</p>
                </c:when>
                <c:otherwise>
-                       <p>${njobs} IP with at least ${counter} jobs ever launched</p>
+                       <p>${njobs} IPs with at least ${counter} jobs ever launched</p>
                        <div class="table-responsive">
                        <table class="table table-striped table-hover table-bordered" id="counts">
                        <thead>