Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

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.