tag:blogger.com,1999:blog-18313336.post8855921034475682706..comments2024-03-18T03:30:55.520-04:00Comments on Abhi On Java: Data Access with Spring and Struts: Part 1abhihttp://www.blogger.com/profile/05788965755655733389noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-18313336.post-37911361953167250042008-05-16T09:02:00.000-04:002008-05-16T09:02:00.000-04:00Try in struts instead this:> action path="/prueb...<I>Try in struts instead this:</I><BR/><BR/>> action path="/prueba"<BR/>type="org.springframework.web.struts.DelegatingAct ionProxy"<BR/>scope="request" validate="false" parameter="cmd"<<BR/><BR/><I><BR/>something like this(without DelegatingAct ionProxy):</I><BR/>>action path="/edit" name="inputForm"<BR/> type="example.action.ViewAction" validate="false" scope="request"<BR/> parameter="op"<<BR/> >forward name="list" path="/jsp/index.jsp" /<<BR/> <forward name="add" path="/jsp/input.jsp" /><BR/> </action><BR/><BR/><I>and add:</I><BR/><controller><BR/> <set-property property="processorClass"<BR/> value="org.springframework.web.struts.DelegatingRequestProcessor" /><BR/> </controller>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-18313336.post-31337555313622943262007-04-23T10:02:00.000-04:002007-04-23T10:02:00.000-04:00Hi, Im having some problems while trying to use Sp...Hi, Im having some problems while trying to use Spring AOP with Struts Actions, and I wonder if you could help me? <BR/><BR/>Im using spring 2.0.4, and struts 1.3, I dont know if that makes any difference?<BR/><BR/>So my struts-config is something like this:<BR/>....<BR/>< action-mappings><BR/>< action path="/prueba"<BR/>type="org.springframework.web.struts.DelegatingAct ionProxy"<BR/>scope="request" validate="false" parameter="cmd"><BR/>< /action><BR/>< /action-mappings><BR/><BR/>< plug-in className="org.springframework.web.struts.ContextL oaderPlugIn"><BR/>< set-property property="contextConfigLocation"<BR/>value="WEB-INF/classes/applicationContext.xml"/><BR/>< /plug-in><BR/>..<BR/><BR/>And my bean definition is:<BR/><BR/>....<BR/>< bean name="/prueba" scope="prototype" autowire="byName"<BR/>class="prueba.integracion.PruebaAction" /><BR/><BR/>< aop:aspectj-autoproxy proxy-target-class="true" /><BR/>...<BR/><BR/>The error Im getting is org.springframework.beans.factory.BeanNotOfRequire dTypeException, Bean named '/prueba' must be of type [org.apache.struts.action.Action], but was actually of type [$Proxy6]<BR/><BR/>Im a bit stuck with this, so Id appreciatte any help.<BR/><BR/>ThanksJavierhttps://www.blogger.com/profile/02712441245841935137noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-76412466773933039152007-01-26T13:13:00.000-05:002007-01-26T13:13:00.000-05:00This example was implemented on Spring 2.0.1.This example was implemented on Spring 2.0.1.abhihttps://www.blogger.com/profile/05788965755655733389noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-44857041388973827852007-01-26T13:03:00.000-05:002007-01-26T13:03:00.000-05:00do you have any idea of integrating struts with sp...do you have any idea of integrating struts with spring 2... i mean is theare any proxy class for Spring2. The example you have given is for Spring 1.xAnonymousnoreply@blogger.com