THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
ActionContext
From anywhere within an SAF2 Struts 2 application, you can obtain a reference to the ActionContext by calling
...
The darker side is that classes that depend heavily on ThreadLocal can be diffcult to unit test. A cleaner design centralizes access to ThreadLocal variables, so that other classes are easier to test.
Back to FAQs
...
This material originally adopted from http://wiki.apache.org/struts/ActionContext?action=edit.