I have a
Map<String, Map<String, Double>>
and I'd like to get the Double value by some given keys. I've found that it can be done using "c:foreach" but I want to find some values, I don't want to iterate all of them. It would be something like:
myMap['myKey']['myAnotherKey']
How can I do this?
尝试这个
<c:out value="${myMap['myKey']['myAnotherKey']}"/>
如果你知道钥匙
Double val = myMap.get(myKey).get(myAnotherkey);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.