-
Mar 23rd, 2009, 03:05 AM
#1
Spring integration with struts
Hello,
I want integrate spring with struts. There is an "old" package :
org.springframework.web.struts
that contains DelegatingActionProxy which can be used in struts-config.xml
like this:
<action path="/some/page"
type="org.springframework.web.struts.DelegatingAct ionProxy"
name="someForm"
scope="request"
validate="true"
roles="rolx,roly"
input="/some/page/page.jsp">
<forward name="success" path="/some/page/success.jsp"/>
<forward name="error" path="/some/page/error.jsp"/>
</action>
Next you have to add this lines of code in struts-config.xml
<plug-in className="org.springframework.web.struts.ContextL oaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/beans.xml"/>
</plug-in>
and in beans.xml you have to create a bean for each action:
<bean name="/some/page" id="myAction"
class="com.some.package.MyAction">
</bean>
My questions is:
Which jar file contains class org.springframework.web.struts.DelegatingActionPro xy ?
Jar finder search for this class results to:
[2978 bytes, jvm >= 1.3 ]
* spring.jar
* spring-1.2.6.jar
* spring-web.jar
* spring-web-1.2.6.jar
* spring-web-1.2.4.jar
* spring-web-1.2.2.jar
* spring-web-2.0-m1.jar
* spring-web-1.2.5.jar
* spring-web-1.2.3.jar
* spring-1.2.4.jar
* spring-1.2.2.jar
* spring-2.0-m1.jar
* spring-1.2.5.jar
* spring-1.2.3.jar
But is in the newest version of spring this package/class moved to somewhere else or is not supported anymore?
Thanx, Hapali
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules