//获取当前会话的所有session
Map<String, String>
sessions
=
session
.
current
().all();
for (Map.Entry<String, String> ses : sessions.entrySet()) {
System.out.println(“key:”+ses.getKey()+“,value:”+ses.getValue());
}
//获取请求的所有参数
Map<String, String[]> pms=params.all();
for (Map.Entry<String, String[]> pm : pms.entrySet()) {
System.out.println(“key:”+pm.getKey()+“,value:”+pm.getValue()[0]);
}
本文出自 “爱闹程序笔记” 博客,请务必保留此出处 http://www.anool.net/?p=896
转载于:https://blog.51cto.com/nbalong/1352116