Apache Struts 2 Documentation > Home > FAQs > How can we create our Action objects from the Spring configuration |
Each time
One time
<listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans default-autowire="autodetect"> <bean id="personManager" class="com.acme.PersonManager"/> ... </beans>
For details, see Initializing Actions from Spring.