關於jsp頁面渲染標籤的用法。
阿新 • • 發佈:2019-01-27
<c:forEach items="${fileList }" var="items">
<c:if test="${items.suffix=='.jpg' }">
<a href="${items.url}">
<i class="fa fa-picture-o"></i>
<span class="rt-green">${items.filename}</span>
</a>
</c:if>
<c:if test="${items.suffix=='.txt' }">
<a href="${items.url}">
<i class="fa fa-file-text"></i>
<span class="rt-green">${items.filename}</span>
</a>
</c:if>
<c:if test="${items.suffix != '.jpg' && (items.suffix != '.txt')}">
<a href="${items.url}">
<i class="fa fa-file"></i>
<span class="rt-green">${items.filename}</span>
</a>
</c:if>
</c:forEach>
<c:if test="${items.suffix=='.jpg' }">
<a href="${items.url}">
<i class="fa fa-picture-o"></i>
<span class="rt-green">${items.filename}</span>
</a>
</c:if>
<c:if test="${items.suffix=='.txt' }">
<a href="${items.url}">
<i class="fa fa-file-text"></i>
<span class="rt-green">${items.filename}</span>
</a>
</c:if>
<c:if test="${items.suffix != '.jpg' && (items.suffix != '.txt')}">
<a href="${items.url}">
<i class="fa fa-file"></i>
<span class="rt-green">${items.filename}</span>
</a>
</c:if>
</c:forEach>