This question already has an answer here:
- How to loop through a HashMap in JSP? 2 answers
In my Spring MVC application i have HashMap returned from my controllerServlet. Now I need to print that in my jsp using JSTL. Please help on this. I'm new in all this.
Try this,
suppose my MAP is :-
So in JSP ,
Hope this helps !
For accessing dynamic value from hash map you can use brace notation
[]
.For example, consider @Som's answer map
JSP
Set key
pass the dynamic key
Or directly
See also