Instead of using the custom tag you should have a loop in the jsp page, like this:
At the top:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
In the body:
<c:forEach var="post" items="${posts}">
<div class="post">
<h2>${post.title}</h2>
<p>${post.content}</p>
<p>${post.time}</p>
</div>
</c:forEach>
And then in the servlet you would have something like this:
request.setAttribute("posts", myPosts);
You would need the "jstl.jar" in your classpath for the taglib to work.
Hope this helps.