Wednesday 16 April 2014

How to integrate your Struts application with Spring?

To integrate your Struts application with Spring, we have two options:

  •  Configure Spring to manage your Actions as beans, using the ContextLoaderPlugin, and set their dependencies in a Spring context file.

  • Subclass Spring's ActionSupport classes and grab your Spring-managed beans explicitly using a getWebApplicationContext() method.

No comments:

Post a Comment