http://www.nabble.com/Spring-scope-prototype-and-Struts-Action-to21341870.html
On Thu, Jan 8, 2009 at 4:30 AM, e_sli...@yahoo.it <e_sli...@yahoo.it> wrote: > Hi folks! > > > > Following the Struts 2 + Spring 2 + JPA + AJAX Tutorial > (http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html) > > > > I'm declaring my Spring bean HelloWorldAction with scope prototype and then > the action in struts.xml using the bean reference. > > > > As far as the scope is prototype I'm expecting Spring to create a new > HelloWorldAction object "every time an object of that type is > requested". > > But during my Tomcat boot I can see Spring creating an HelloWorldAction > object. Is it normal? I thought this behaviour was only for singleton > beans. > > > > Thanks, > > > > Emanuele > > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org