Tag Archives: Map

How To Iterate Over Map in jsp

<%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core&#8221; %> <html> <head> <title>Example – Iterate Map</title> </head> <body> <pre> Before “forEach” tag <c:forEach var=”entry” items=”${applicationScope}”> Name: ${entry.key} Value: ${entry.value}<br> </c:forEach> After “forEach” tag </pre> </body> </html> Advertisements

Posted in java | Tagged , | Leave a comment