Yes, this will work. What tutorial are you speaking of? A link would be great.
On Tue, May 4, 2010 at 12:07 PM, Juan Antonio <juan....@tecnosfera.org>wrote: > > I have found this old thread, and i have a little doubt. > > if I didn't use the GenericManager, Should i inject the manager using > applicationContext.xml, or there is another way to do it? > > Example: > > <bean id="myManager" class="com.proyecto.service.impl.MyManagerImpl"> > <constructor-arg ref="myDao"/> > </bean> > > <bean id="myAction" class="com.proyecto.action.MyAction" scope="prototype"> > <property name="myManager" ref="myManager"/> > <bean> > > public class MyAction extends BaseAction { > > private MyManager myManager; > > public MyManager getMyManager() { > return myManager; > } > > public void setMyManager(MyManager myManager) { > this.myManager = myManager; > } > > ... > } > > Is this right? The tutorial doesn't clarify it... > > > -- > View this message in context: > http://appfuse.547863.n4.nabble.com/Extending-GenericManager-Spring-MVC-tp562233p2126065.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >