[ACCEPTED]-Read data from HashMap using JSTL tag in JSP without using for each or for loop-jstl
Accepted answer
You need to know the keys beforehand.
${map.key}
The 3 above gets the value of map.get("key")
.
Or if the key contains 2 dots
${map['key.with.dots']}
This gets the value of map.get("key.with.dots")
.
Or if it's a 1 dynamic key
${map[dynamicKey]}
This gets the value of map.get(dynamicKey)
.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.