## Uses of Class
org.apache.struts2.ActionContext

- Packages that use ActionContext
  Package | Description
  --- | ---
  com.opensymphony.xwork2 | Main XWork interfaces and classes.
  org.apache.struts2 |
  org.apache.struts2.interceptor |
  org.apache.struts2.util |

- - ### Uses of ActionContext in com.opensymphony.xwork2

    Subclasses of ActionContext in com.opensymphony.xwork2
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ActionContext` Deprecated. since 6.7.0, use `ActionContext` instead.

    Methods in com.opensymphony.xwork2 with parameters of type ActionContext
    Modifier and Type | Method and Description
    --- | ---
    `static ActionContext` | ActionContext.`adapt(ActionContext actualContext)` Deprecated.

  - ### Uses of ActionContext in org.apache.struts2

    Methods in org.apache.struts2 that return ActionContext
    Modifier and Type | Method and Description
    --- | ---
    `ActionContext` | ActionContext.`bind()` Binds this context with the current thread
    `static ActionContext` | ActionContext.`bind(ActionContext actionContext)` Binds the provided context with the current thread
    `static ActionContext` | ActionContext.`getContext()` Returns the ActionContext specific to the current thread.
    `ActionContext` | ActionInvocation.`getInvocationContext()` Gets the ActionContext associated with this ActionInvocation.
    `static ActionContext` | ActionContext.`of()` Creates a new ActionContext based on empty Map
    `static ActionContext` | ActionContext.`of(Map<String,Object> context)` Creates a new ActionContext based on passed in Map
    `ActionContext` | ActionContext.`with(String key, Object value)` Adds arbitrary key to action context
    `ActionContext` | ActionContext.`withActionInvocation(ActionInvocation actionInvocation)` Sets the action invocation (the execution state).
    `ActionContext` | ActionContext.`withActionMapping(ActionMapping actionMapping)` Assigns ActionMapping to action context
    `ActionContext` | ActionContext.`withActionName(String actionName)` Sets the name of the current Action in the ActionContext.
    `ActionContext` | ActionContext.`withApplication(Map<String,Object> application)` Sets the action's application context.
    `ActionContext` | ActionContext.`withContainer(Container container)` Gets the container for this request
    `ActionContext` | ActionContext.`withConversionErrors(Map<String,ConversionData> conversionErrors)` Sets conversion errors which occurred when executing the action.
    `ActionContext` | ActionContext.`withExtraContext(Map<String,Object> extraContext)` Assigns an extra context map to action context
    `ActionContext` | ActionContext.`withLocale(Locale locale)` Sets the Locale for the current action.
    `ActionContext` | ActionContext.`withPageContext(javax.servlet.jsp.PageContext pageContext)` Assigns PageContext to action context
    `ActionContext` | ActionContext.`withParameters(HttpParameters parameters)` Sets the action parameters.
    `ActionContext` | ActionContext.`withServletContext(javax.servlet.ServletContext servletContext)` Assigns ServletContext to action context
    `ActionContext` | ActionContext.`withServletRequest(javax.servlet.http.HttpServletRequest request)` Assigns ServletRequest to action context
    `ActionContext` | ActionContext.`withServletResponse(javax.servlet.http.HttpServletResponse response)` Assigns ServletResponse to action context
    `ActionContext` | ActionContext.`withSession(Map<String,Object> session)` Sets a map of action session values.
    `ActionContext` | ActionContext.`withValueStack(ValueStack valueStack)` Sets the OGNL value stack.

    Methods in org.apache.struts2 with parameters of type ActionContext
    Modifier and Type | Method and Description
    --- | ---
    `static ActionContext` | ActionContext.`bind(ActionContext actionContext)` Binds the provided context with the current thread

  - ### Uses of ActionContext in org.apache.struts2.interceptor

    Methods in org.apache.struts2.interceptor with parameters of type ActionContext
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | StaticParametersInterceptor.`addParametersToContext(ActionContext ac, Map<String,?> newParams)` Adds the parameters into context's ParameterMap.
    `protected Object` | ScopedModelDrivenInterceptor.`resolveModel(ObjectFactory factory, ActionContext actionContext, String modelClassName, String modelScope, String modelName)`
    `protected Map<String,String>` | StaticParametersInterceptor.`retrieveParameters(ActionContext ac)`

  - ### Uses of ActionContext in org.apache.struts2.util

    Methods in org.apache.struts2.util that return ActionContext
    Modifier and Type | Method and Description
    --- | ---
    `ActionContext` | ValueStack.`getActionContext()`

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.