- 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.
For details, see Initializing Actions from Spring.