Home » Struts 2 ActionContext tutorial

Struts 2 ActionContext tutorial

by Online Tutorials Library

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:

You may also like