title: How to pass an object to the view Spring MVC3
body: <p>I have a simple test project in Spring 3, basically a method within the controller that fetches data from an arraylist and "should" pass them to a view
  Thsi is how the method looks like:</p>
  
  <pre><code>@RequestMapping(value="/showUsers")
  public String showUsers(Model model){
      ArrayList&lt;User&gt; users=this.copy();
      model.addAttribute(users);
      return "showUsers";
  }
  </code></pre>
  
  <p>And here's the jsp (showUsers.jsp)</p>
  
  <p>They both execute with no logs or warnings the view is displayed but without the <code>ArrayList&lt;User&gt;</code> data's :(</p>
  
  <pre><code>&lt;table align="center" border="1"&gt;
      &lt;tr&gt;
          &lt;td&gt;Nr:&lt;/td&gt;&lt;td&gt;Name:&lt;/td&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;Modify?&lt;/td&gt;
      &lt;/tr&gt; 
      &lt;c:forEach var="user" items="${users}" varStatus="status"&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;c:out value="${status.count}"/&gt;&lt;/td&gt;&lt;td&gt;&lt;c:out value="${user.name}"/&gt;&lt;/td&gt;
              &lt;td&gt;&lt;c:out value="${user.email}"/&gt;&lt;/td&gt;&lt;td&gt;Modify&lt;/td&gt;
          &lt;/tr&gt;   
      &lt;/c:forEach&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Any advice?
  Thank you!</p>