`
jeffsui
  • 浏览: 1242 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论
文章列表
小结下在struts2中如何访问request、session和application对象 总共有四种方式: 1.是否与servlet耦合----是否使用servlet子类对象 2.是否IOC--是否返回map类型对象 (1)ActionContext对象-----IOC,不与servlet耦合 三种方法返回值都是map类型的对象   ActionContext.getContext().get(Object o);   ActionContext.getContext().getSession();   ActionContext.getContext().getApplication(); ...
Global site tag (gtag.js) - Google Analytics