Struts2之ServletActionContext、ActionContext、ActionInvocation

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的下一步骤

你可能感兴趣的:(web)