title: Spring Web MVC: How to retrieve model (passed as map) in a view?
body: <p>When using <code>ModelandView</code> constructor with two parameters - <code>String viewName, Map model</code> - to pass multiple parameters to a <em>view</em> <code>JSP</code>, how do I then retrieve them?</p>
  
  <p>If they are retrieved like map values, then what is the map name?</p>
  
  <p>Let say, my <em>controller</em> code has the following:</p>
  
  <pre><code>    Map&lt;String, Object&gt; myModel = new HashMap&lt;String, Object&gt;();
      myModel.put("1", "one");
      myModel.put("2", "two");
      return new ModelAndView("view", myModel);
  </code></pre>
  
  <p>What do I need to put into <code>JSP</code> so "<strong>one</strong>" and "<strong>two</strong>" appear on the page?</p>
  
  <p>I'm using Java EE 7, Spring 3.2.4, GlassFish 4 server</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>SOLVED (See the accepted answer).</p>
  
  <blockquote>
    <p>Since this post continues to receive downvotes I would like to point
    out that I posted what I unsuccessfully tried and what actually worked
    in my response to the accepted answer below on the same day the question was posted and answered.</p>
  </blockquote>