Methods Summary |
---|
public static com.opensymphony.xwork2.ActionContext | getActionContext(javax.servlet.http.HttpServletRequest req)Gets the current action context
ValueStack vs = getValueStack(req);
if (vs != null) {
return new ActionContext(vs.getContext());
} else {
return null;
}
|
public static org.apache.struts2.dispatcher.mapper.ActionMapping | getActionMapping()Gets the action mapping for this context
return (ActionMapping) ActionContext.getContext().get(ACTION_MAPPING);
|
public static javax.servlet.jsp.PageContext | getPageContext()Returns the HTTP page context.
return (PageContext) ActionContext.getContext().get(PAGE_CONTEXT);
|
public static javax.servlet.http.HttpServletRequest | getRequest()Gets the HTTP servlet request object.
return (HttpServletRequest) ActionContext.getContext().get(HTTP_REQUEST);
|
public static javax.servlet.http.HttpServletResponse | getResponse()Gets the HTTP servlet response object.
return (HttpServletResponse) ActionContext.getContext().get(HTTP_RESPONSE);
|
public static javax.servlet.ServletContext | getServletContext()Gets the servlet context.
return (ServletContext) ActionContext.getContext().get(SERVLET_CONTEXT);
|
public static com.opensymphony.xwork2.util.ValueStack | getValueStack(javax.servlet.http.HttpServletRequest req)Gets the current value stack for this request
return (ValueStack) req.getAttribute(STRUTS_VALUESTACK_KEY);
|
public static void | setRequest(javax.servlet.http.HttpServletRequest request)Sets the HTTP servlet request object.
ActionContext.getContext().put(HTTP_REQUEST, request);
|
public static void | setResponse(javax.servlet.http.HttpServletResponse response)Sets the HTTP servlet response object.
ActionContext.getContext().put(HTTP_RESPONSE, response);
|
public static void | setServletContext(javax.servlet.ServletContext servletContext)Sets the current servlet context object
ActionContext.getContext().put(SERVLET_CONTEXT, servletContext);
|