์ฝ๋๋ก ๋์ฒดํจ
<tr th:if="${#lists.size(list) > 0}" th:each="list : ${list}">
<td th:text="${list.no}"></td>
<td><a th:href="@{user/view(empId=${list.empId}, empSno=${list.empSno})}" th:text="${list.empNm}"></a></td>
<td th:text="${list.empId}"></td>
</tr>
<a th:href="@{user/view(empId=${list.empId}, empSno=${list.empSno})}" th:text="${list.empNm}"></a>
์๋์ ๊ฐ์ URL์ด ์์ฑ๋๋ค.(empId, empSno๋ ์๋ฒ์์ ๊ฐ์ ธ์จ ๊ฐ)
localhost:8080/user/view?empId=test&empSno=1(์์)
'IT > development' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[JavaScript] ๋ ์ง ์ฌ์ด ์ผ์ ๊ณ์ฐ (0) | 2023.04.29 |
---|---|
[thyemeleaf] form ๊ฒ์๊ฐ ์ ์ง (0) | 2023.04.26 |
[thyemeleaf] select option๊ฐ list loop (0) | 2023.04.26 |
INSERT/UPDATE template(feat. ์์ CONCATENATE) (0) | 2023.03.05 |
[java] list์ null ์ฒดํฌ(ObjectUtils.isEmpty()) (0) | 2023.02.12 |
๋๊ธ