Re: Autowired and PostConstruct with Struts + Spring

2009-04-28 Thread dusty
;> (I hardly even use annotations; maybe that's not necessary?) >> >> Dave >> >> >> >> >> From: "e_sli...@yahoo.it" >> To: user@struts.apache.org >> Sent: Monday, April 27, 2

Re: Autowired and PostConstruct with Struts + Spring

2009-04-28 Thread Norris Shelton
orris Shelton To: Struts Users Mailing List ; e_sli...@yahoo.it Sent: Monday, April 27, 2009 4:09:27 PM Subject: Re: Autowired and PostConstruct with Struts + Spring I have a question. Why are you using PostConstruct anyway? AFAIK, a new action is created for each request. This is not going to

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Norris Shelton
To: user@struts.apache.org Sent: Monday, April 27, 2009 3:29:38 PM Subject: Re: Autowired and PostConstruct with Struts + Spring Hi Norris and Dave! Thank you for your answers. Yes, I have get/set methods for myService. If you means declaring: in my struts.xml for my object factory, yes. I

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Miguel
gt; (I hardly even use annotations; maybe that's not necessary?) >> >> Dave >> >> >> >> >> From: "e_sli...@yahoo.it" >> To: user@struts.apache.org >> Sent: Monday, April 27, 2009 12:41:01 PM >&g

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

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Norris Shelton
Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton From: "e_sli...@yahoo.it" To: user@struts.apache.org Sent: Monday, April 27, 2009 12:41:01 PM Subject: Autowired and PostConstruct with Struts + Spring Hello everybody! I'm t

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Dave Newton
e_sli...@yahoo.it wrote: 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 canno

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