Re: Struts 2/Spring and @Required

2009-04-06 Thread Timothy Orme
Perfect, Ill give that a shot and let you know if I'm still stumped. Thanks! Tim Jeroen De Ridder wrote: Don't forget that you need to instantiate a bean postprocessor in your applicationContext to enforce the @Required-annotation: class="org.springframework.beans.factory.annotation.RequiredA

Re: Struts 2/Spring and @Required

2009-04-06 Thread Jeroen De Ridder
Don't forget that you need to instantiate a bean postprocessor in your applicationContext to enforce the @Required-annotation: class="org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor" /> I don't supply any configuration to spring. I simply have the applicationCo

Re: Struts 2/Spring and @Required

2009-04-06 Thread Timothy Orme
I don't supply any configuration to spring. I simply have the applicationContexts constructing beans, and then have a couple of lines in my struts.xml configuring the Object Factory and the autowire method. and of course have the listeners set up in my web-xml. What sort of c

Re: Struts 2/Spring and @Required

2009-04-06 Thread Musachy Barroso
You should post your spring xml config file, it looks like some AOP config is probably missing. musachy On Mon, Apr 6, 2009 at 2:34 PM, Timothy Orme wrote: > Hello All, > >        One of the nice annotation features of spring is the ability to > annotate injected fields with @Required so that yo

RE: Struts 2/Spring and @Required

2009-04-06 Thread Martin Gainty
fourni. > Date: Mon, 6 Apr 2009 14:34:08 -0400 > From: to...@genome.med.harvard.edu > To: user@struts.apache.org > Subject: Struts 2/Spring and @Required > > Hello All, > > One of the nice annotation features of spring is the ability to > annotate injected fields with

Struts 2/Spring and @Required

2009-04-06 Thread Timothy Orme
Hello All, One of the nice annotation features of spring is the ability to annotate injected fields with @Required so that you don't get null pointer exceptions. However, I can only seem to get this to work with my test cases (spring throws an error when a required field isn't set), but I can't