public class ServletActionContext extends Object implements StrutsStatics
| Modifier and Type | Field and Description | 
|---|---|
| static String | STRUTS_VALUESTACK_KEY | 
ACTION_MAPPING, HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION, STRUTS_PORTLET_CONTEXT| Modifier and Type | Method and Description | 
|---|---|
| static ActionContext | getActionContext() | 
| static ActionContext | getActionContext(javax.servlet.http.HttpServletRequest req)Gets the current action context | 
| static ActionMapping | getActionMapping()Gets the action mapping for this context | 
| static ActionContext | getContext()Deprecated. 
 Use  getActionContext()instead | 
| static javax.servlet.jsp.PageContext | getPageContext()Returns the HTTP page context. | 
| static javax.servlet.http.HttpServletRequest | getRequest()Gets the HTTP servlet request object. | 
| static javax.servlet.http.HttpServletResponse | getResponse()Gets the HTTP servlet response object. | 
| static javax.servlet.ServletContext | getServletContext()Gets the servlet context. | 
| static ValueStack | getValueStack(javax.servlet.http.HttpServletRequest req)Gets the current value stack for this request | 
| static void | setRequest(javax.servlet.http.HttpServletRequest request)Sets the HTTP servlet request object. | 
| static void | setResponse(javax.servlet.http.HttpServletResponse response)Sets the HTTP servlet response object. | 
| static void | setServletContext(javax.servlet.ServletContext servletContext)Sets the current servlet context object | 
public static final String STRUTS_VALUESTACK_KEY
public static ActionContext getActionContext(javax.servlet.http.HttpServletRequest req)
req - The request@Deprecated public static ActionContext getContext()
getActionContext() insteadgetActionContext()public static ActionContext getActionContext()
public static ValueStack getValueStack(javax.servlet.http.HttpServletRequest req)
req - The requestpublic static ActionMapping getActionMapping()
public static javax.servlet.jsp.PageContext getPageContext()
public static void setRequest(javax.servlet.http.HttpServletRequest request)
request - the HTTP servlet request object.public static javax.servlet.http.HttpServletRequest getRequest()
public static void setResponse(javax.servlet.http.HttpServletResponse response)
response - the HTTP servlet response object.public static javax.servlet.http.HttpServletResponse getResponse()
public static javax.servlet.ServletContext getServletContext()
public static void setServletContext(javax.servlet.ServletContext servletContext)
servletContext - The servlet context to useCopyright © 2000–2025 Apache Software Foundation. All rights reserved.