Apache Struts 2 Documentation > Home > FAQs > Why would we want to create Action objects from the Spring configuration |

Apache Struts 2 Documentation
Why would we want to create Action objects from the Spring configuration
Edit Page Browse Space Add Page Add News
Added by Ted Husted, last edited by Don Brown on Dec 29, 2006 (view change)

If an application makes extensive use of Spring, it can be convenient to manage all the classes in one location – the Spring configuration. Remember that 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 way.

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

For more, see Initializing Actions from Spring.