修改日志文件字段为http前缀

This commit is contained in:
zhanghongqing
2018-08-13 14:53:37 +08:00
parent a029ff9b25
commit 17b61ff96e
2 changed files with 20 additions and 20 deletions

View File

@@ -224,60 +224,60 @@
</c:if>
</td>
<td>
<c:if test="${fn:startsWith(_log.reqHdrFile, 'ftp')}">
<c:if test="${fn:startsWith(_log.reqHdrFile, 'http')}">
<a href="${_log.reqHdrFile}" data-original-title="${_log.reqHdrFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fn:substring(_log.reqHdrFile,0,20) }
</a>
</c:if>
<c:if test="${!fn:startsWith(_log.reqHdrFile, 'ftp') and !empty _log.reqHdrFile}">
<a href="ftp://${_log.reqHdrFile}" data-original-title="ftp://${_log.reqHdrFile}" target="_blank"
<c:if test="${!fn:startsWith(_log.reqHdrFile, 'http') and !empty _log.reqHdrFile}">
<a href="http://${_log.reqHdrFile}" data-original-title="http://${_log.reqHdrFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
ftp://${fn:substring(_log.reqHdrFile,0,20) }
http://${fn:substring(_log.reqHdrFile,0,20) }
</a>
</c:if>
</td>
<td>
<c:if test="${fn:startsWith(_log.reqBodyFile, 'ftp')}">
<c:if test="${fn:startsWith(_log.reqBodyFile, 'http')}">
<a href="${_log.reqBodyFile}" data-original-title="${_log.reqBodyFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fn:substring(_log.reqBodyFile,0,20) }
</a>
</c:if>
<c:if test="${!fn:startsWith(_log.reqBodyFile, 'ftp') and !empty _log.reqBodyFile}">
<a href="ftp://${_log.reqBodyFile}" data-original-title="ftp://${_log.reqBodyFile}" target="_blank"
<c:if test="${!fn:startsWith(_log.reqBodyFile, 'http') and !empty _log.reqBodyFile}">
<a href="http://${_log.reqBodyFile}" data-original-title="http://${_log.reqBodyFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
ftp://${fn:substring(_log.reqBodyFile,0,20) }
http://${fn:substring(_log.reqBodyFile,0,20) }
</a>
</c:if>
</td>
<td>
<c:if test="${fn:startsWith(_log.resHdrFile, 'ftp')}">
<c:if test="${fn:startsWith(_log.resHdrFile, 'http')}">
<a href="${_log.resHdrFile}" data-original-title="${_log.resHdrFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fn:substring(_log.resHdrFile,0,20) }
</a>
</c:if>
<c:if test="${!fn:startsWith(_log.resHdrFile, 'ftp') and !empty _log.resHdrFile}">
<a href="ftp://${_log.resHdrFile}" data-original-title="ftp://${_log.resHdrFile}" target="_blank"
<c:if test="${!fn:startsWith(_log.resHdrFile, 'http') and !empty _log.resHdrFile}">
<a href="http://${_log.resHdrFile}" data-original-title="http://${_log.resHdrFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
ftp://${fn:substring(_log.resHdrFile,0,20) }
http://${fn:substring(_log.resHdrFile,0,20) }
</a>
</c:if>
</td>
<td>
<c:if test="${fn:startsWith(_log.resBodyFile, 'ftp')}">
<c:if test="${fn:startsWith(_log.resBodyFile, 'http')}">
<a href="${_log.resBodyFile}" data-original-title="${_log.resBodyFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fn:substring(_log.resBodyFile,0,20) }
</a>
</c:if>
<c:if test="${!fn:startsWith(_log.resBodyFile, 'ftp') and !empty _log.resBodyFile}">
<a href="ftp://${_log.resBodyFile}" data-original-title="ftp://${_log.resBodyFile}" target="_blank"
<c:if test="${!fn:startsWith(_log.resBodyFile, 'http') and !empty _log.resBodyFile}">
<a href="http://${_log.resBodyFile}" data-original-title="http://${_log.resBodyFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
ftp://${fn:substring(_log.resBodyFile,0,20) }
http://${fn:substring(_log.resBodyFile,0,20) }
</a>
</c:if>
</td>

View File

@@ -213,16 +213,16 @@
</td>
<td>${_log.subject }</td>
<td>
<c:if test="${fn:startsWith(_log.emlFile, 'ftp')}">
<c:if test="${fn:startsWith(_log.emlFile, 'http')}">
<a href="${_log.emlFile}" data-original-title="${_log.emlFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fn:substring(_log.emlFile,0,20) }
</a>
</c:if>
<c:if test="${!fn:startsWith(_log.emlFile, 'ftp') and !empty _log.emlFile}">
<a href="ftp://${_log.emlFile}" data-original-title="ftp://${_log.emlFile}" target="_blank"
<c:if test="${!fn:startsWith(_log.emlFile, 'http') and !empty _log.emlFile}">
<a href="http://${_log.emlFile}" data-original-title="http://${_log.emlFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
ftp://${fn:substring(_log.emlFile,0,20) }
http://${fn:substring(_log.emlFile,0,20) }
</a>
</c:if>
</td>