I want to read data from a HashMap using EL in a JSP page, but without the use of JSTL <c:forEach> or a for loop. How can I do this?
I want to read data from a HashMap using EL in a JSP page,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just use the map key as if it were a bean property:
This does under the covers the same as
map.get("key").Or via the brace notation if the key contains dots:
This does under the covers the same as
map.get("key.with.dots").Or if the key is another variable:
This does under the covers the same as
map.get(dynamicKey).