Re: Spring scope prototype and Struts Action

2009-01-08 Thread Musachy Barroso
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 wrote: > Hi folks! > > > > Following the Struts 2 + Spring 2 + JPA + AJAX Tutorial > (http://struts.apache.org/2.0.14/docs/struts-2-spri

Spring scope prototype and Struts Action

2009-01-08 Thread e_sli...@yahoo.it
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 p

Re: Spring scope prototype and Struts Action

2009-01-07 Thread Dave Newton
Emanuele Ghevre wrote: 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 f

Spring scope prototype and Struts Action

2009-01-07 Thread Emanuele Ghevre
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 prot