Take the 2-minute tour ×  I am working on an existing code that
is using one controller to call a method on the 2nd controller.
There are 2 implementations I have seen so far.  1st
Implementation  return new Controller().method(request,
response);  2nd Implementation  private Controller controller.
return this.controller.method(request, response);  Which is the
right implementation, what are the problems if any with either
of them.  share|improve this question What is the advantage of
this? Doing so breaks a lot of convention, and you should be
considering revising, i.e. breaking up the controller code and
maybe moving some of the logic into the business layer. –  dardo
Oct 11 '12 at 21:36 add comment  6 Answers  up vote 3 down vote
accepted  The mere fact that you need to call a method from
another controller reveals a probable design flaw.  With option
1, you lose everything the Spring DI container brought you:
namely, that other controller may be instantiated by Spring with
some other dependencies wired i