티스토리 뷰

☠️ Java

JSTL(Java Standard Tag Library)

James Wetzel 2024. 9. 20. 16:31
728x90
반응형

<%@ taglib prefix="c" uri="jakarta.tags.core" %> 또는 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<c:forEach var="item" items="${allList}">
<tr>
    <td data-label="번호">${ item.seqNo }</td>
    <td data-label="제목"><a href="#">${ item.subject }</a></td>
    <td data-label="작성자">${ item.writer }</td>
    <td data-label="작성일">${ item.regDate }</td>
    <td data-label="조회수">105</td>
</tr>
</c:forEach>

 

728x90
반응형