Hi I tried to integrate Struts 1.2 with Spring 2.0,for that I tried the followinf steps.But while running the application it says that action servlet not found.Then I explored the Spring JAR package then I Could d not found “org.springframework.web.struts.ContextLoaderPlugIn” class.
Pls confirm where the problem exist in code or not ?
——————–
1)IN struts Config file , as below
<action-mappings >
<action
attribute=”searchForm”
input=”/search.jsp”
name=”searchForm”
path=”/search”
scope=”request”
type=”org.springframework.web.struts.DelegatingActionProxy” />
</action-mappings>
2)Added plugin in struts Config File as below Listed
<plug-in className=”org.springframework.web.struts.ContextLoaderPlugIn”>
<set-property property=”contextConfigLocation” value=”/WEB-INF/applicationContext.xml”/>
</plug-in>
3 ) IN applicationContext file is as below
<beans
xmlns=”http://www.springframework.org/schema/beans”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd”>
<bean name=”/search” class=”com.yourcompany.struts.action.SearchAction”/>