再将该对象存储在session作用域的属性内?
没什么头绪,只要讲讲思路和重要的语句怎么写就行了,不需要完整的代码。谢谢!
比如创建了一个hashmap对象,
Map map=new HashMap();
map.put("c", "ccc");
map.put("a", "aaa");
map.put("b", "bbb");
map.put("d", "ddd");
怎么把这个map里的属性值写进session.setAttribute里呢?
那么怎么添加到hashmap里呢?
比如
Map map=new HashMap();
map.put("c", "ccc");
map.put("a", "aaa");
map.put("b", "bbb");
map.put("d", "ddd");
这个用session.setAttribute怎么写呢?