Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Spring provides a mechanism to manage dependencies by injecting them at run time. Struts 2 ActionSupport classes-like classes—like any other Java class-can class—can be injected with a dependent object by the Spring framework. So instead of having the above code, I would have this statement in EditAction.

...