您的位置:首页 > 编程语言 > Java开发

Struts2之ServletActionContext、ActionContext、ActionInvocation

2016-12-10 20:50 211 查看

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的下一步骤
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: