Written on
·
181
0
<table border="1" th:if="${image != null && image.documents.size() > 0}">
<thead>
<tr th:each="item, status : ${image}">
<td th:if="${status.index % 6 == 0 && status.index + 1 % 6 == 0}">
<a th:href="@{item.docUrl}">
<img th:src="@{item.thumbnail_url}">
</a>
</td>
</tr>
</thead>
</table>
<table th:unless="${image != null && image.documents.size() > 0}">
</table>
<c:when test=${image != null && image.documents.size() > 0}">
<table border="1">
<c:forEach var="item" items="${image.documents}" varStatus="status">
<c:if test="${status.index % 6 == 0}">
<tr>
</c:if>
<td>
<a href="${item.docUrl}">
<img src="${mite.thumbnail_url}" />
</a>
</td>
<c:if test=${status.index + 1 % 6 == 0}">
</tr>
</c:if>
</c:forEach>
</table>
</c:when>
Answer 1
0
안녕하세요. 조재연님, 공식 서포터즈 Taewon David Hwang입니다:)
.
만약 재연님처럼 컨트롤러에서 뷰쪽으로 전달하는 변수를 사용하려면 th:src="${...}" 형태로 사용하시는 게 맞습니다.
.
감사합니다.
그렇군요 감사합니다 !