title: Need to set variables(attributes) for HttpServletResponse
body: <p>I have a working code.</p>
  
  <pre><code>@RequestMapping(value = "/test/getData.do", method = RequestMethod.POST)
  public String getData(HttpServletRequest request, ModelMap model
          ,@RequestBody Map reqbody)
    throws Exception{
  
      List result = testService.selectData(reqbody);
      model.addAttribute("grid", result); 
  
      return "jsonview";
  }
  </code></pre>
  
  <p>Now, I want to change above code to below style.
  - adding data to response instead of model.</p>
  
  <pre><code>@RequestMapping(value = "/test/getData.do", method = RequestMethod.POST)
  public String getData(HttpServletRequest request, HttpServletResponse response
          ,@RequestBody Map reqbody)
    throws Exception{
  
      List result = testService.selectData(reqbody);
      //model.addAttribute("grid", result);   
      //add result to response here...
  
      return "jsonview";
  }
  </code></pre>
  
  <p>Any suggestion??
  Thanks in advance.</p>