Each time
- Configure the bean in the Spring configuration file (usually applicationContext.xml)
- Change the "class" attribute in the struts.xml action mapping to use the bean name defined in Spring instead of the actual class name.
One time
- Add struts.objectFactory = spring to the struts.properties.
- Add the Spring listener to the web.xml.
- Add the Spring configiuration file to the WEB-INF folder.
For details, see Initializing Actions from Spring.