I have a JSP page with JSTL and I want to separate an user from other with an <hr>
tag. How can I solve it?
<c:forEach var="user" items="${list_users}">
<c:out value="${user.name}"/>
<c:out value="${user.surname}"/>
</foreach>
I have a JSP page with JSTL and I want to separate an user from other with an <hr>
tag. How can I solve it?
<c:forEach var="user" items="${list_users}">
<c:out value="${user.name}"/>
<c:out value="${user.surname}"/>
</foreach>
You can use a table to draw each user in the cell, then put
<hr>
Put it inside the loop and use
varStatus
attribute ofc:forEach
to remove the one line you don't need in the end.