title: Can a Spring MVC controller return both a HttpServletResponse and a view?
body: <p>My existing code is like:</p>
  
  <pre><code>String myController(@PathVariable someId, ModelMap map){
  ....
  return "myViewName";
  }
  </code></pre>
  
  <p>Now I want to set a cookie in some cases, so I need to get hold of a HttpServletResponse obj. Can I just add such a response obj to the list of params and operate on it in the controller? 
  If so, I wonder how my own response is kind of reconciled with the response generated by the JSP that resolves the "myViewName".</p>