title: Retrieving a model from ModelAndView in jsp
body: <p>I am currently trying to return a model from onSubmit() in my controller. I then am trying to retrieve this in my jsp.</p>
  
  <p>for example</p>
  
  <pre><code>Map model = new HashMap();
  model.put("errors", "example error");
  return new ModelAndView(new RedirectView("login.htm"), "model", model);
  </code></pre>
  
  <p>and then retrieving it with</p>
  
  <pre><code>&lt;c:out value="${model.errors}"/&gt;
  </code></pre>
  
  <p>However this does not display anything.  it goes to the correct redirectview and does not issue any errors, but the text is not displayed.</p>
  
  <p>Any help will be much appreciated.</p>
  
  <p>thanks</p>