将 java 循环转换为 JSTL <c:forEach>

Convert java looping into JSTL <c:forEach>

我用了java,我想用c:forEach

把它转换成jsp
 int supplierList = 40;
 for (int a = 0; a < supplierList ; a++) 
 {

 }

Here is my java code screenshoot

<c:forEach items="${bean.getFunctions()}" var="func"> <c:if test="${func.key=='Search'}"> </c:if> </c:forEach>

在这里 bean.getFunctions() 将 return 一张地图。循环时每个元素将分配给 var.