Hi,
I have read the Spring and Struts integration article and also tried a few sample applications. Although I managed to get the application works, I am still confused on the WebApplicationContext part. After Spring integrated with Struts, the applicationContext is initialized via
However, if we add a Context Listener at Web.xml and assign the contextConfigLocation as below, will there be two applicationContext initialized?Code:<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> <set-property property="contextConfigLocation" value="/WEB-INF/conf/applicationContext.xml" /> </plug-in>
Code:<context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/conf/applicationContext.xml</param-value> </context-param> <listener> <description>Spring context loader</description> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>


Reply With Quote
