Quick info for reference.
Loop through a Map and output the Key and Value data using;
<c:forEach items="${map}" var="entry"> Key: <c:out value="${entry.key}"/> Value: <c:out value="${entry.value}"/> </c:forEach>
If you have an object within the Key:Value pair, such as within an object Map
${map.key}
Then you can iterate over the above list using the code to get the Attribute data within the CustomerInformation object a follows;
<c:forEach items="${map.value}" var="customerInformation"> <tr> <td>${customerInformation.firstName}</td> </tr> </c:forEach>
Michael Cropper
Latest posts by Michael Cropper (see all)
- How to Setup NICs on XCP-NG Centre on First Setup for Proper VLAN Configuration - August 9, 2022
- How to Setup XCP-NG Tools on Debian 11 Bullseye - August 7, 2022
- How to Setup XCP-NG Tools on CentOS 7 Using XCP-NG Centre - August 7, 2022