trainingtrains Logo

91-9990449935

 0120-4256464

Struts 2 ActionContext Tutorial

The ActionContext is a container of objects in which action is executed. The values stored in the ActionContext are unique per thread (i.e. ThreadLocal). So we don't need to make our action thread safe.

We can get the reference of ActionContext by calling the getContext() method of ActionContext class. It is a static factory method. For example: