facebook

Struts 1.2 intergration with Spring 2.0

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #284970 Reply

    jacobdeiter
    Member

    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&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd”&gt;

    <bean name=”/search” class=”com.yourcompany.struts.action.SearchAction”/>

    #284982 Reply

    Loyal Water
    Member

    Moving to Off Topic >> Software Development.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Struts 1.2 intergration with Spring 2.0

You must be logged in to post in the forum log in