css
list 페이지에 보여주기 위한 css article 에있는 id regdate title memberid를 tr th td 를 썻 담는다
<table border="1">
<thead>
<tr>
<th>번호</th>
<th>날짜</th>
<th>제목</th>
<th>작성자</th>
</tr>
</thead>
<tbody>
<c:forEach var="article" items="${articles }">
<tr>
<td>${article.id }</td>
<td>${article.regDate.substring(0,10) }</td>
<td><a href="detail?id=${article.id }">${article.title }</a></td>
<td>${article.memberId }</td>
</tr>
</c:forEach>
</tbody>
</table>
JSTL(JSP Standard Tag Library)은 표준 태그 라이브러리로, JSP의 기본 태그가 아닌 JSP 확장 태그이다.
JSTL은 반복, 조건 로직이나 formatting 작업, XML 문서, SQL 태그의 조작을 위한 태그에 사용된다.
c라는 접두사(prefix)로 시작하는 태그는 해당 URI에서 가져오는 태그라는 것을 알려주어야 한다.
<%@ taglib uri="http://java.sun.com/sjp/jstl/core" prefix="c" %>
uri: 태그 라이브러리의 네임 스페이스 URI 식별자
prefix: JSTL 태그를 사용할 때 태그 이름 앞에 오는 접두사
아직 잘 써본적은 없지만 일단은 알아두자,!