I tried the following which surprisingly does not work, looks like .values does not work at all in jstl:
<c:forEach var="r" items="${applicationScope['theMap'].values}">
The map is defined like this (and later saved to the ServletContext):
Map<Integer, CustomObject> theMap = new LinkedHashMap<Integer, CustomObject>();
How to get this working? I actually really would like to avoid modifying what's inside of the foreach-loop.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…