action 定义了一个map 怎么在页面上调用

public static void outMapDefault(Map map) {

if (map == null) {

System.out.println("Map is NULL!");

return;

}

Iterator it = map.keySet().iterator();

while (it.hasNext()) {

Object o = (Object) it.next();

if (map.get(o) instanceof List) {

List l = (List) map.get(o);

System.err.println("Map.key:" + o.toString());

for (Object object : l) {

System.err.println("Map.values:" + object);

}

} else {

System.err.println("Map.key:" + o.toString() + "\n"

+ "Map.value:" + map.get(o).toString());

}

}

}

这是个控制台输出map的范例 自己写的