Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread e_sli...@yahoo.it
Hello everybody! I'm trying to use my service into a Struts action but with no success. My struts action contains : @Autowired private MyService myService @PostConstruct public void init() {   // use here myService } Unfortunately myService is always null and I cannot use myService in the init

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread e_sli...@yahoo.it
helton > > Is there a public myService setter? > > (I hardly even use annotations; maybe that's not necessary?) > > Dave > > > > > From: "e_sli...@yahoo.it" > To: user@struts.apache.org > Sent: Monday

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