Child pages
  • Why would we want to create Action objects from the Spring configuration

Versions Compared

Key

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

If an application makes extensive use of Spring, it can be convenient to manage all the classes in one location – the Spring configuration. Remember, Actions do not need to implement a special interface. Actions can also be POJOs that are not tied to Struts or the web-layer in any fashion.

We might also want to apply more complex AOP or Spring-enabled technologies, such as Acegi, to our Action objects.

(lightbulb) For more, see Initializing Actions from Spring.