How to get value of bean property when property name itself is a dynamic variable
If you want to use dynamic property names, use the brace notation. <c:forEach items=”${items}” var=”item”> ${item[propertyName]} </c:forEach>
If you want to use dynamic property names, use the brace notation. <c:forEach items=”${items}” var=”item”> ${item[propertyName]} </c:forEach>