As we all now, struts2 can be integrated with other frameworks also. In this article,I will try to expalin how to integrate struts2 with spring framework.
To perform the integration, follow the below steps.
1.download the struts2-spring-plugin-x.y.z.jar file and add to class path file
2.In the web.config file configure the ContextLoaderListener listner as shown below.
To perform the integration, follow the below steps.
1.download the struts2-spring-plugin-x.y.z.jar file and add to class path file
2.In the web.config file configure the ContextLoaderListener listner as shown below.
<listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener>
The main purpose of this file is to load the applicatioContext.xml file. This file should be at the same level of web.xml file.
No comments:
Post a Comment