作者在 2010-12-12 21:23:35 发布以下内容
如果只是在内置对象中得到值可用
ActionContext ac=ActionContext.getContext();
ac.getApplication().put("app", "人好");//application
ac.getSession().put("com", "abcdef");//session
ac.put("aev", "dddfs");//request
要得到原始的内置对象
HttpServletRequest request=ServletActionContext.getRequest();
HttpServletResponse response=ServletActionContext.getResponse();
ServletContext servletContext=ServletActionContext.getServletContext();
ActionContext ac=ActionContext.getContext();
ac.getApplication().put("app", "人好");//application
ac.getSession().put("com", "abcdef");//session
ac.put("aev", "dddfs");//request
要得到原始的内置对象
HttpServletRequest request=ServletActionContext.getRequest();
HttpServletResponse response=ServletActionContext.getResponse();
ServletContext servletContext=ServletActionContext.getServletContext();