title: Spring MVC @ResponseBody
body: <p>I have a controller that extends the MultiActionController and that does not use annotation. Everything is configured by xml. </p>
  
  <p>Is there a way to reproduce this method in a MultiActionController?</p>
  
  <pre><code>    @RequestMapping(value = "/products", method = RequestMethod.GET)
          public @ResponseBody List&lt;Product&gt; products() {
              return product.getList();
          }
  </code></pre>
  
  <p>The problem I'm facing is how to return the list in the @ResponeBody. </p>
  
  <p>My methods looks like these:</p>
  
  <pre><code>public ModelAndView login(HttpServletRequest request,HttpServletResponse response) throws ServletRequestBindingException {
      return new ModelAndView("login", model);
  }
  </code></pre>