权限为什么存不进去
首先我在AdminCheckAction方法内
HttpSession mySession = request.getSession(true);
然后又往mySession 存入权限
mySession.setAttribute("currentPerm",
profile.judgedLandPerm(account.getA_id()));
(注:profile.judgedLandPerm(account.getA_id())返回的即是一个权限值)
我用debug跟踪表明,权限已经存入mySession
接着我在InformShowAction方法内
调用 mySession
HttpSession mySession = request.getSession(false);(注:false,true均不可)
Permission currentPerm =
(Permission)mySession.getAttribute("currentPerm");
但用debug跟踪表示权限未存入
请问,我的代码错在哪?
应该怎么改??
谢谢,指教