📄 actionlog.jsp
字号:
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="mcap.core.clickstream.model.ActionRequest" %>
<head>
<title><fmt:message key="actionLog.title"/></title>
<content tag="heading"><fmt:message key="actionLog.heading"/></content>
</head>
<!-- You could also add a message to the default decorator and not use this page. -->
<fmt:message key="actionLog.message"/>
<div class="separator"></div>
<table class="detail">
<c:set var="pageButtons">
<tr>
<td></td>
<td class="buttonBar">
<input type="button" class="button" name="back" onclick="location.href='<c:url value="/listActionLog.action" />'" value="<fmt:message key="button.back"/>" />
<input type="button" class="button" name="back" onclick="location.href='<c:url value="/mainPage.action" />'" value="<fmt:message key="button.cancel"/>" />
</td>
</tr>
</c:set>
<tr>
<th>
<mcaps:label key="actionLog.sessionId"/>
</th>
<td>
<c:out value="${actionLog.sessionId}"/>
</td>
</tr>
<tr>
<th>
<mcaps:label key="actionLog.username"/>
</th>
<td>
<c:out value="${actionLog.username}"/>
</td>
</tr>
<tr>
<th>
<mcaps:label key="actionLog.hostName"/>
</th>
<td>
<c:out value="${actionLog.hostName}"/>
</td>
</tr>
<tr>
<th>
<mcaps:label key="actionLog.initialReferrer"/>
</th>
<td>
<a href="<c:out value="${actionLog.initialReferrer}"/>" target="_blank"><c:out value="${actionLog.initialReferrer}"/></a>
</td>
</tr>
<tr>
<th>
<mcaps:label key="actionLog.start"/>
</th>
<td>
<fmt:formatDate value="${actionLog.start}" pattern="dd MM yyyy HH:mm:ss"/>
</td>
</tr>
<tr>
<th>
<mcaps:label key="actionLog.lastRequest"/>
</th>
<td>
<fmt:formatDate value="${actionLog.lastRequest}" pattern="dd MM yyyy HH:mm:ss"/>
</td>
</tr>
<tr>
<th>
<mcaps:label key="actionLog.length"/>
</th>
<td>
<c:if test="${actionLog.length > 3600000}">
<c:out value="${actionLog.length / 3600000}" /> hours
</c:if>
<c:if test="${actionLog.length > 60000}">
<c:out value="${(actionLog.length / 60000) % 60}" /> minutes
</c:if>
<c:if test="${actionLog.length > 1000}">
<c:out value="${(actionLog.length / 1000) % 60}" /> seconds
</c:if>
</td>
</tr>
<tr>
<th>
<mcaps:label key="actionLog.bot"/>
</th>
<td>
<c:choose>
<c:when test="${actionLog.bot}">
Yes
</c:when>
<c:otherwise>
No
</c:otherwise>
</c:choose>
</td>
</tr>
<%-- Print out buttons - defined at top of form --%>
<%-- This is so you can put them at the top and the bottom if you like --%>
<c:out value="${pageButtons}" escapeXml="false" />
</table>
<div class="separator"></div>
<h3>Request List</h3>
<mcaps:userPreference key="pageSize" name="pageSize" scope="page"/>
<display:table name="${actionLog.clickstream}" cellspacing="0" cellpadding="0" requestURI=""
defaultsort="1" id="actionRequest" pagesize="${pageSize}" class="list actionRequestList"
export="true">
<%-- Table columns --%>
<% String url = "http://" + ((ActionRequest) pageContext.getAttribute ("actionRequest")).toURL ();
request.setAttribute ("url", url);
System.out.println("===================" + url);
%>
<display:column property="protocol" sortable="true" headerClass="sortable" style="width:10%;"
titleKey="actionRequest.protocol" />
<display:column property="serverName" sortable="true" headerClass="sortable" style="width:15%"
titleKey="actionRequest.serverName" />
<display:column property="serverPort" sortable="true" headerClass="sortable" style="width:10%"
titleKey="actionRequest.serverPort" />
<display:column sortable="true" headerClass="sortable" style="width:15%"
titleKey="actionRequest.requestURI" >
<a href="<c:out value="${url}"/>"><c:out value="${actionRequest.requestURI}"/></a>
</display:column>
<display:column property="queryString" sortable="true" headerClass="sortable" style="width:15%"
titleKey="actionRequest.queryString" />
<display:column property="remoteUser" sortable="true" headerClass="sortable" style="width:15%"
titleKey="actionRequest.remoteUser" />
<display:column property="timestamp" sortable="true" headerClass="sortable" style="width:20%"
titleKey="actionRequest.timestamp">
<fmt:formatDate value="${actionRequest.timestamp}" pattern="dd MM yyyy HH:mm:ss"/>
</display:column>
<display:setProperty name="paging.banner.item_name" value="request"/>
<display:setProperty name="paging.banner.items_name" value="requests"/>
<display:setProperty name="export.excel.filename" value="Action Request Log List.xls"/>
<display:setProperty name="export.csv.filename" value="Action Request Log List.csv"/>
<display:setProperty name="export.pdf.filename" value="Action Request Log List.pdf"/>
</display:table>
<script type="text/javascript">
<!--
highlightTableRows("actionRequest");
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -