DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
Each time
- Configure the bean in the Spring configuration file (usually
applicationContext.xml) - Change the "class" attribute in the
struts.xmlaction mapping to use the bean name defined in Spring instead of the actual class name.
One time
- Add
struts.objectFactory = springto the struts.properties. - Add the Spring listener to the web.xml.
<listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> - Add the Spring configiuration file to the
WEB-INFfolder.<?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.