Hi,

is the @SpringBean annotation designed to work
in custom ActionBeanContext? I get a NPE
when I try to access the Spring bean. It binds
correctly in ActionBeans...

Sometime ago I ran into a problem of using the
same Spring bean in ActionBeans which inherited
from one another - this would not work for 
obvious reason and gave me a NPE but AFAIK 
ActionBeanContext is not in any way 
hierarchically bound to any of the ActionBeans?


code is simple as hell:

public class BaseActionBeanContext 
        extends ActionBeanContext {

@SpringBean
private UserService userService;

public void method(String username) {
//line below throws NPE
User user = userService.findByName(username);
}

any ideas or suggestions please?

Regards,
Szymon


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to