코드로 대체함
<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' 카테고리의 다른 글
| INSERT/UPDATE template(feat. 엑셀 CONCATENATE) (0) | 2025.12.10 |
|---|---|
| [thyemeleaf] select option값 list loop (0) | 2025.12.10 |
| [thyemeleaf] form 검색값 유지 (0) | 2025.11.24 |
| [JavaScript] 날짜 사이 일수 계산 (0) | 2025.11.24 |
| [mybatis] 검색(Oracle) (0) | 2025.11.24 |
댓글