title: How to iterate over a list of strings sent from a controller to a jsp
body: <p>I invoke the "addObject" of a ModelAndView like so: <code>modelAndView.addObject("userNames", userNames);</code>  The second argument is an ArrayList of strings. How can I iterate over this list in a JSP page?</p>
  
  <p>This is what I have, but it doesn't seem to work:</p>
  
  <pre><code>&lt;select id="users"&gt;
     &lt;c:forEach var="userName" items="${userNames}"&gt;
        &lt;option&gt;${userName}&lt;option/&gt;
     &lt;/c:forEach&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Do I need to add a tag import to be able to use elements in tag c? </p>