Monday, May 14, 2012

print a list of names in jsp

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:

<td> Names: </td>

<c:forEach items="${names}" var="allnames">
<c:out value="${allnames} " ></c:out>


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

No comments:

Post a Comment