ApplicationContext context = new ClassPathXmlApplicationContext("classpath:appContext.xml");
UserAction action = new UserAction();
action.setUserServiceImpl((UserService)context.getBean("userServiceImpl"));
action.getUserServiceImpl().addUser(user);