title: How to call one controller to another controller URL in Spring MVC?
body: <p>Hi I am new to Spring MVC ,I want to call method from one controller to another controller ,how can I do that .please check my code below</p>
  
  <pre><code>@Controller
  
      @RequestMapping(value="/getUser")
      @ResponseBody
      public User getUser()
      {
          User u = new User();
          //Here my dao method is activated and I wil get some userobject
         return u;
      }
     @Controller
  
      @RequestMapping(value="/updatePSWD")
      @ResponseBody
      public String updatePswd()
      {
          here I want to call above controller method and 
         I want to update that user password here.
         how can  I do that 
          return "";
      }
  </code></pre>
  
  <p>any one help me .</p>