Struts2之ServletActionContext、ActionContext、ActionInvocation

来源:互联网 发布:大数据服务器价格 编辑:程序博客网 时间:2024/06/06 08:40

1、ActionContext api详解

static ActionContext getContext():返回ActionContext对象
Map<String,Object> getApplication() :返回代表ServletContext的map
Map<String,Object> getContextMap() :返回代表HttpServletRequest的map
Map<String,Object> getSession(): 返回代表HttpSession的map

2、ServletActionContext api详解

extends ActionContext

static PageContext getPageContext() :返回 PageContext对象
static HttpServletRequest getRequest() :返回 HttpServletRequest对象
static HttpServletResponse getResponse():返回 HttpServletResponse
static ServletContext getServletContext() :返回ServletContext对象

3、ActionInvocation api详解

ActionContext getInvocationContext():返回ActionContext对象
ActionProxy getProxy()
String invoke():指行ActionInvocation的下一步骤

0 0