I need to show a list of the names of boys and girls in order. Data structure sending names to the view List<String>.
The problem is this: (e.g. boys names starting with a):
(ordered list is shown from left to right)
Aaron Abraham Adam
Alen Alex Alexander
..
I need to show them how (an ordered list should appear from top to bottom, then go to the second column)
Aaron Alen ...
Abraham Alex
Adam Alexander
...
Needless to say, each group changed the number of names. For example, group a may have more names than group b.
<c:forEach var="name" items="${names}">
<div class="col-md-4">
${name}
</div>
</c:forEach>
source
share