HashMap<HashMap<Integer, Integer>, String> myMap = new HashMap<HashMap<Integer, Integer>, String>();
HashMap<Integer, Integer> mmm = new HashMap<Integer, Integer>();
mmm.put(1, 2);
myMap.put(mmm, "la");
mmm = new HashMap<Integer, Integer>();
mmm.put(2, 3);
myMap.put(mmm, "ololo");
如何通过密钥从JSP页面访问myMap? 我需要这样的东西JSP访问中的HashMap <HashMap <Integer,Integer>,String>
<td>${myMap[2][3]}</td>
打印
<td>ololo</td>
为什么使用HashMap作为单个值的关键?你确定这是你想要的吗? –
有简单的例子 – Artik