I'm trying to print out a list of names and i want to be the one down to another
I'm trying this code:
<tr>
<td> Names: </td>
<td>
<c:forEach items="${names}" var="allnames">
<c:out value="${allnames} " ></c:out>
</c:forEach>
</td>
</tr>
But it print the one next to the other. What should i change?
P.S: the result now is: Names: nick george john
and i want to be :
Names: nick
george
john
No comments:
Post a Comment