velocity页面换取map值,不用循环map
$!{aa.get($!{aa.keySet().iterator().next()}).dictionaryName}
以下为参考:
用Iterator it2 = map.keySet().iterator();这个取到的值怎么在jsp页面中获取
while(it.hasNext()){Mapmap=(Map)it.next();Iteratorit2=map.keySet().iterator();while(it2.hasNext()){Stringkey=it2.next().toString();Stringvalue=map.get(key).toString();Sys... while(it.hasNext()){
Map map = (Map)it.next();
Iterator it2 = map.keySet().iterator();
while(it2.hasNext()){
String key = it2.next().toString();
String value = map.get(key).toString();
System.out.println("key = " + key + " value = " + value);
}
}