-<c:import url="/template_header.jsp" >
- <c:param name="title">Usage Statistics</c:param>
- <c:param name="html_custom_css"><link href="${pageContext.request.contextPath}/static/css/table.css"
- rel="stylesheet"></c:param>
-</c:import>
-
-<%-- check if the cached page is available: if not redirects--%>
-<%@ page import="java.io.*,java.net.*" %>
-<%
- URL url = new URL(request.getRequestURL().toString().replaceAll("/usage_statistics.jsp", "") +
- "/cached_usage_statistics.html");
- HttpURLConnection http = (HttpURLConnection)url.openConnection();
- int statusCode = http.getResponseCode();
- if (statusCode != 200) {
- String redirectURL = "PublicAnnualStat";
- response.sendRedirect(redirectURL);}
-%>
-
-<%-- load cached Service Status --%>
- <div class="row">
- <div class="col-md-3"></div>
- <div class="col-md-6">
- <div class="center-block">
- <hidden_loader style="display:none;">
- <div class="alert alert-warning" role="alert">
- <p style="text-align: center; font-size: 16px">
- <img src="${pageContext.request.contextPath}/static/img/loader.gif" style="width:7%;height:7%">
- This request usually takes several minutes to be served...
- </p>
- </div>
- </hidden_loader>
- </div>
- </div>
- <div class="col-md-3"></div>
- </div>
-
-<div class="row" id="mainpage">
- <div class="col-md-12">
- <p>The results shown below have been cached from a request made (up to an hour) before...
- <a class="btn btn-default" href="${pageContext.request.contextPath}/PublicAnnualStat" role="button"
- title="JABAWS server usage statistics."
- id="show_hidden2"><i class="fa fa-bar-chart" aria-hidden="true"></i> Get fresh Usage Statistics</a>
- </p>
- </div>
-</div>