Improve JSP pages
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Fri, 27 Sep 2013 14:27:20 +0000 (15:27 +0100)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Fri, 27 Sep 2013 14:27:20 +0000 (15:27 +0100)
statpages/MonthlySummary.jsp
statpages/ServicesStatus.jsp
statpages/StatisticsTable.jsp

index 55af94b..41bfd1d 100644 (file)
@@ -2,7 +2,7 @@
 Author: Peter Troshin\r
 Date: May 2011\r
 --%>\r
-<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>\r
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>\r
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>\r
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>\r
 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>\r
index bc1d873..67255a3 100644 (file)
@@ -17,13 +17,13 @@ TODO refactor
 <div style="margin: 20px ">\r
 <h2 style="text-align: center;">JABAWS Services Status</h2>\r
 \r
-<ul style="font-weight: bold;">\r
+<c:set var="host" value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}" />\r
+\r
+<ul style="font-weight:bold;">\r
        <li>All the services are tested while this page is being loaded</li>\r
        <li>If you want to test the services again, just reload this page.</li>\r
        <li>Click on the service status to see the results of the testing.</li>\r
-       <li>Server tested: <a href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}">\r
-       ${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}\r
-       </a> </li>\r
+       <li>Server tested: <a href="${host}">${host}</a> </li>\r
        <li>Time of execusion: ${timeexec} msec</li>\r
 </ul>\r
 \r
@@ -48,7 +48,7 @@ TODO refactor
        </c:if><c:if test="${status.count%2!=0}">\r
        <tr class="odd">\r
        </c:if>\r
-               <td width="100px">${res.service}</td>\r
+               <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>\r
                <td>${res.version}</td>\r
                <c:if test="${res.status}">\r
                        <td><div class="source">\r
@@ -98,7 +98,7 @@ TODO refactor
        </c:if><c:if test="${status.count%2!=0}">\r
        <tr class="odd">\r
        </c:if>\r
-               <td width="100px">${res.service}</td>\r
+               <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>\r
                <td>${res.version}</td>\r
                <c:if test="${res.status}">\r
                        <td><div class="source">\r
@@ -148,7 +148,7 @@ TODO refactor
        </c:if><c:if test="${status.count%2!=0}">\r
        <tr class="odd">\r
        </c:if>\r
-               <td width="100px">${res.service}</td>\r
+               <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>\r
                <td>${res.version}</td>\r
                <c:if test="${res.status}">\r
                        <td><div class="source">\r
index e6da204..01e070a 100644 (file)
@@ -3,7 +3,7 @@ Author: Peter Troshin
 Date: May 2011\r
 --%>\r
 \r
-<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>\r
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>\r
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>\r
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>\r
 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>\r