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

Reply via email to