首页 > 软件网络

ActionContext.getContext().getSession().put()放在哪了

时间:2017-01-03  来源:  作者:

ActionContext的put()和get()_百度知道

首先:我在登录的Action中编写 ActionContext ctx =ActionContext.getContext(); ctx.getSession().put("managerName", name); 然后在另一个Action中获取“manager...

struts2 中ActionContext.getContext().getSession().put("","")...

struts2 中ActionContext.getContext().getSession().put("","")是什么意思 和HttpSession有什么区别吗牛到不得了啊 2011-5-30详细问题描述及疑问:期待您的...

struts2中关于ActionContext.put()方法 - ITeye问答

ActionContext ctx = ActionContext.getContext(); ctx.getApplication().put("", "");//application作用域 ctx.getSession().put("", "");//session作用域...

...ActionContext.getContext().getSession().put(""..._百度作业帮

struts2 中ActionContext.getContext().getSession().put("",和HttpSession有什么区别吗 曕喺A2014-10-04优质解答 没区别,前一个是将值保存到session中,...

...中ActionContext.getContext().getSession().put(""..._百度知道

个是将值保存到session中,效果等同于session.setAttribute("",""),前者就是struts2对后者的一个封装,把session,request,application全都放到了actioncontext()容器...

ActionContext.getContext().getSession().put("user",..._百度知道

if(name.equals(user.getLoginname()) && pwd.equals(user.getPassword())) { ActionContext.getContext().getSession().put("user", name); return "success...

...ActionContext.getContext().getSession()_百度知道

用这句话 ActionContext.getContext().getSession().put("result",result),报错因为给出的方法是put(arg0, arg1)而且我也没有看到有setAttribue("","")的...

ActionContext.getContext().getSession() 怎么用?在线..._百度知道

ActionContext.getContext().getSession() .put("键","要存放的值");这样就存进去了然后在JSP里就就可以了 追问: Action...

session.put()有什么作用?-CSDN论坛-CSDN.NET-中国最大的IT技术社区

ActionContext.getContext().getSession()是获取当前线程的session的作用域,返回的是一个MAP,和session的值可以同样获取。 ActionContext是一次请求的上下文,包含这次请...

ActionContext.getContext().put在JSP页面获取值..._ChinaUnix博客

put("counter", counter); ctx.getSession().put("user", getUsername())...ActionContext ac = ActionContext.getContext(); ac.put("tip","您已经成功...
来顶一下
返回首页
返回首页
栏目更新
栏目热门