Daily Archives: June 16, 2011

Jsp Tutrial

Java Control in Scriptlets If Statement Switch Statement For Statement Try Statement Implicit Object application Get Initialization Parameters Set Attribute Get Attributes Remove Attribute Implicit Object config Get Initialization Parameters Initialization and Destruction Implicit Object exception Exception Implicit Object out … Continue reading

Posted in JSP | Leave a comment

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>

Posted in java | Tagged , | Leave a comment