[ACCEPTED]-Read data from HashMap using JSTL tag in JSP without using for each or for loop-jstl

Accepted answer
Score: 62

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).

More Related questions