title: Are all parameters passed to the mapped method available to the view of the webapp
body: <p>I want to know what different things are available to the JSP (view) of a traditional java spring webapp .</p>
  
  <p>For ex , I have this method in my controller </p>
  
  <pre><code>@RequestMapping(value="/index", method=RequestMethod.GET)
  public String index(@ModelAttribute Person person,Map&lt;String, Object&gt; map, Car c) {
  person.setName("Aman");
  c.setNumber("12345");
  map.put("person", person);
  map.put("car",c);
  return "index";
  }
  </code></pre>
  
  <p>Now when i access them in my JSP page with this</p>
  
  <pre><code>&lt;SELECT&gt;
  &lt;option selected="selected"&gt;&lt;/option&gt;
  &lt;option value="${person.name}"&gt;${person.name}&lt;/option&gt;
  &lt;option value="${car.number}"&gt;${car.number}&lt;/option&gt;
  &lt;/SELECT&gt;
  </code></pre>
  
  <p>both person and car is available to the JSP .</p>
  
  <p>but in a case like this </p>
  
  <pre><code> @RequestMapping(value="/index", method=RequestMethod.GET)
      public String index() {
      ModelMap m = new ModelMap();
      Person person = new Person();
      person.setName("Aman");
      map.put("person", person);
      return "index";
      }
  </code></pre>
  
  <p>In this case the person isn't available to the view .So what are the different values that are available to the view of a webapp</p>