Skip to content

Commit

Permalink
Merge pull request nutzam#326 from godson741/master
Browse files Browse the repository at this point in the history
session属性获取错误
  • Loading branch information
wendal committed Sep 7, 2012
2 parents e017a9b + 2fa4c68 commit 10aba75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/nutz/mvc/view/AbstractPathView.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static Context createContext(HttpServletRequest req, Object obj) {
Map<String,Object> session_attr = new HashMap<String, Object>();
for (Enumeration<String> en = req.getSession().getAttributeNames(); en.hasMoreElements();) {
String tem = en.nextElement();
session_attr.put(tem, req.getAttribute(tem));
session_attr.put(tem, req.getSession().getAttribute(tem));
}
context.set("session_attr", session_attr);

Expand Down

0 comments on commit 10aba75

Please sign in to comment.