What you are doing should work the way you expect... I use the Spring
integration all the time :)

A few simple questions, do you have the spring-plugin installed? Do
you have the Spring ContextLoaderListener setup in the web.xml? Do you
have any non-default configuration settings in any of web.xml,
applicationContext.xml or struts.xml? Are you using any plugins other
than the Spring plugin? What version of Spring and Struts are you
using?

-Wes

On Fri, Jan 29, 2010 at 1:19 AM, Miguel <miguel...@gmail.com> wrote:
> Hello all,
> I have a problem when using spring and the spring aplication context.
> If I configure the action class directly from struts.conf, my action
> does just the correct behavior. (1)
> But if I configure the action in a spring file and in struts.conf put
> only the spring bean name everything gets piped to the input result
> (the prepare method is executed, but not the action method).(2)
> I would benefit if the second scenario worked, because in the spring
> configuration is quite complex and have more than one bean of the same
> type
>
> (1) <action name="receptor_*" method="{1}"
> class="com.fcm.sectorPrimario2009.ui.ReceptorAction"> (struts.conf)
>
> (2)  <action name="receptor_*" method="{1}" class="receptorSPAction">
> (struts.conf)
>
> <bean id="receptorSPAction"
> class="com.fcm.sectorPrimario2009.ui.ReceptorAction"
> scope="prototype"> (spring.xml)
>                <property name="receptorDAO"><ref
> local="receptorDAOSectorPrimario"/></property>
>        </bean>
>
> I hope someone can help me
>
>
>
>
> Si quieres ser más positivo, pierde un electrón
> Miguel Ruiz Velasco Sobrino
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to