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