The validation is fine as it works when I scope my actions as singleton in the applicationContext.xml. Problem happens only when I scope them as prototype.
When you say that Struts will try to use Spring to create all framework objects, is it possible to configure such a way that the action classes are instantiated by Struts but later they are autowired to Spring service beans. If possible can you direct me on how to configure that way? Thanks, Anand -----Original Message----- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Sunday, February 15, 2009 2:02 PM To: Struts Users Mailing List Subject: Re: Struts2-Spring Integration Issue 2009/2/15 Sundararaman, Anand <anand.sundarara...@ps.net>: > No it did not work with that change as well. > > Initially I was getting a "NoSuchMethodException" on the method activateUser > in the action class. Now after the change you suggested, it asked for an > "input" result type in the action class. If I give the "input" result type it > just does not go to that method nor the execute method and comes back to the > original screen with action errors displayed. "input" result is needed for validation purpose, if validation fail, interceptor will return to "input" result, which means you have some problem with validation and maybe that's the root of your problems. Remember that if you enable integration with Spring, Strust will try to use Spring to create all framework objects, from actions to interceptors. Regards -- Lukasz http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org