# Uses of Class
org.apache.struts2.ActionContext

Packages that use ActionContext
Package
Description
org.apache.struts2
Main XWork interfaces and classes.
org.apache.struts2.config.impl
Configuration implementation classes.
org.apache.struts2.conversion.impl
org.apache.struts2.dispatcher
This package contains a reimagining of the traditional Struts filter dispatchers.
org.apache.struts2.interceptor
Interceptor classes.
org.apache.struts2.interceptor.parameter
org.apache.struts2.mock
XWork specific mock classes.
org.apache.struts2.ognl
org.apache.struts2.util
XWork util classes.

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

  Fields in org.apache.struts2 declared as ActionContext
  Modifier and Type
  Field
  Description
  `protected ActionContext`
  DefaultActionInvocation.`invocationContext`
  Methods in org.apache.struts2 that return ActionContext
  Modifier and Type
  Method
  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`
  ServletActionContext.`getActionContext()`
  `static ActionContext`
  ServletActionContext.`getActionContext(jakarta.servlet.http.HttpServletRequest req)`
  Gets the current action context
  `static ActionContext`
  ActionContext.`getContext()`
  Returns the ActionContext specific to the current thread.
  `ActionContext`
  ActionInvocation.`getInvocationContext()`
  Gets the ActionContext associated with this ActionInvocation.
  `ActionContext`
  DefaultActionInvocation.`getInvocationContext()`
  `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(jakarta.servlet.jsp.PageContext pageContext)`
  Assigns PageContext to action context
  `ActionContext`
  ActionContext.`withParameters(HttpParameters parameters)`
  Sets the action parameters.
  `ActionContext`
  ActionContext.`withServletContext(jakarta.servlet.ServletContext servletContext)`
  Assigns ServletContext to action context
  `ActionContext`
  ActionContext.`withServletRequest(jakarta.servlet.http.HttpServletRequest request)`
  Assigns ServletRequest to action context
  `ActionContext`
  ActionContext.`withServletResponse(jakarta.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
  Description
  `static ActionContext`
  ActionContext.`bind(ActionContext actionContext)`
  Binds the provided context with the current thread
  `Result`
  DefaultUnknownHandlerManager.`handleUnknownResult(ActionContext actionContext, String actionName, ActionConfig actionConfig, String resultCode)`
  Iterate over UnknownHandlers and return the result of the first one that can handle it
  `Result`
  UnknownHandler.`handleUnknownResult(ActionContext actionContext, String actionName, ActionConfig actionConfig, String resultCode)`
  Handles the case when a result cannot be found for an action and result code.
  `Result`
  UnknownHandlerManager.`handleUnknownResult(ActionContext actionContext, String actionName, ActionConfig actionConfig, String resultCode)`

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

  Methods in org.apache.struts2.config.impl that return ActionContext
  Modifier and Type
  Method
  Description
  `protected ActionContext`
  DefaultConfiguration.`setContext(Container cont)`

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

  Methods in org.apache.struts2.conversion.impl with parameters of type ActionContext
  Modifier and Type
  Method
  Description
  `protected DateTimeFormatter[]`
  DateConverter.`getDateTimeFormats(ActionContext context, Locale locale)`
  Retrieves the list of date time formats to be used when converting dates
  `protected String`
  DateConverter.`getGlobalDateString(ActionContext context)`
  The user defined global date format, see `Date.DATETAG_PROPERTY`

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

  Methods in org.apache.struts2.dispatcher that return ActionContext
  Modifier and Type
  Method
  Description
  `ActionContext`
  PrepareOperations.`createActionContext(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)`
  Creates the action context and initializes the thread local

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

  Methods in org.apache.struts2.interceptor with parameters of type ActionContext
  Modifier and Type
  Method
  Description
  `protected void`
  ActionMappingParametersInterceptor.`addParametersToContext(ActionContext ac, Map<String,?> newParams)`
  Adds the parameters into the current ActionContext's parameter map.
  `protected void`
  StaticParametersInterceptor.`addParametersToContext(ActionContext ac, Map<String,?> newParams)`
  Adds the parameters into context's ParameterMap.
  `Interceptor`
  WithLazyParams.LazyParamInjector.`injectParams(Interceptor interceptor, Map<String,String> params, ActionContext invocationContext)`
  `protected Object`
  ScopedModelDrivenInterceptor.`resolveModel(ObjectFactory factory, ActionContext actionContext, String modelClassName, String modelScope, String modelName)`
  `protected HttpParameters`
  ActionMappingParametersInterceptor.`retrieveParameters(ActionContext actionContext)`
  Get the parameter map from ActionMapping associated with the provided ActionContext.
  `protected Map<String,String>`
  StaticParametersInterceptor.`retrieveParameters(ActionContext ac)`

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

  Methods in org.apache.struts2.interceptor.parameter with parameters of type ActionContext
  Modifier and Type
  Method
  Description
  `protected void`
  ParametersInterceptor.`addParametersToContext(ActionContext ac, Map<String,?> newParams)`
  Adds the parameters into context's ParameterMap
  `protected HttpParameters`
  ParametersInterceptor.`retrieveParameters(ActionContext actionContext)`
  Gets the parameter map to apply from wherever appropriate

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

  Methods in org.apache.struts2.mock that return ActionContext
  Modifier and Type
  Method
  Description
  `ActionContext`
  MockActionInvocation.`getInvocationContext()`
  Methods in org.apache.struts2.mock with parameters of type ActionContext
  Modifier and Type
  Method
  Description
  `void`
  MockActionInvocation.`setInvocationContext(ActionContext invocationContext)`

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

  Methods in org.apache.struts2.ognl that return ActionContext
  Modifier and Type
  Method
  Description
  `ActionContext`
  OgnlValueStack.`getActionContext()`

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

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