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
2010-02-02 10:35:19