1) is correct. I can't tell you the number of times that, on app startup, I've gotten reams and reams of error messages because Spring couldn't instantiate some bean or another.2) is both -- which you could determine for yourself pretty easily by putting a logging statement in the action's constructor.
jk On Wed, May 13, 2009 at 10:03 PM, ren sky <byzh...@gmail.com> wrote: > 1) before running my project, spring has already instantiate all the > object defined in the applicationContext.xml? > such as LoginAction,PersonServiceImpl and sessionFactory? > 2) the action used in struts2 is instantiated before a request comes > in? or is instantiated when a real request comes in? > 3) with spring,what is the role of struts2 ? it seems that the > responsibility of instantiate object is changed to spring, not > struts2. > > thanks. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Jim Kiley Senior Technical Consultant | Summa [p] 412.258.3346 http://www.summa-tech.com