title: The method addObject(String, Object) from the type ModelMap is deprecated?
body: <p>How can I achieve the following in spring mvc 3.2.2?</p>
  
  <p>I get the following error:</p>
  
  <p>The method addObject(String, Object) from the type ModelMap is deprecated?</p>
  
  <pre><code>model.addObject("obj", obj);  // obj is pojo
  </code></pre>
  
  <p>Then want to access it within .jsp/jstl view</p>
  
  <pre><code>${obj.id}
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public class obj {
  private String Id;
  public void setId(String value) {Id = value;}
  public String getId() {
      return Id;
    }
   }
  </code></pre>
  
  <p>View</p>
  
  <pre><code> ${obj.Id} &lt;-- DOES NOT work
   ${obj.getId()} &lt;-- works!
  </code></pre>