<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>All Articles</title>
</head>
<body>
<c:if test="${!empty articles}">
   <h1 align="center">List Articles</h1>
   <hr width=500 >
	<table>
		<tr>
		    <th>Article ID</th>
			<th>Article Name</th>
			<th>Article Description</th>
			<th>Added Date</th>
		 </tr>
		<c:forEach items="${articles}" var="article">
			<tr>
				<td><c:out value="${article.articleId}"/></td>
				<td><c:out value="${article.articleName}"/></td>
				<td><c:out value="${article.articleDesc}"/></td>
				<td><c:out value="${article.addedDate}"/></td>
			</tr>
		</c:forEach>
	</table>
</c:if>
<c:if test="${empty articles}">
 <c:out value="Not Available  Article Details"></c:out>
</c:if>
</body>
</html>