views:

130

answers:

1

How can I get value from one controller to another controller using Spring framework

A: 

Inject the needed controller into the one that needs it (using @Resource, @Autowired, @Inject (spring 3), or applicationContext.xml). Like:

@Controller
public class SomeController {
    @Autowired
    private NeededController neededController;

    ...
}
Bozho