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
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
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
3 matches
Mail list logo