how to display list of item under using tag
I have emp list and which contain sub list called contactlist with one to
many mapping. I need to display list of items(contacts) under single tag
using for each like below:
the out should like below sample
Emp Name Emp email Contact Details
emp1 emp1.gmail.com 232323232 232323232 8999999999
emp2 emp2.gmail.com 232323232 232323232 8999999999
code below not working.it is not displaying under single column instead
displaying under multiple columns. as result disturbing layout.
<c:forEach items="${empmodel.contactList}" var="contacts">
<c:out value="${contacts.contactDetails}/><br/>
</c:forEach>
thank you...
No comments:
Post a Comment