title: JSTL - Assign list content into an array
body: <p>I have list of users and I want to assign each user into an index of array:</p>
  
  <pre><code>&lt;%
      User users[] = new User[n];
      pageContext.setAttribute("users", users);      
  %&gt; 
  </code></pre>
  
  <p>Now:</p>
  
  <pre><code>&lt;c:forEach items="${usersList}" var="user"&gt;   
       // here I want to assign each user into an array index like:
       // users[index] = user               
   &lt;/c:forEach&gt;
  </code></pre>
  
  <p>At the end I want to access each index of array manually. Something like below:</p>
  
  <pre><code>  &lt;p&gt;&lt;c:out value="${users[0].getName()}" /&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I know above is not correct, can some one help how can I achieve this via jstl? Thanks.</p>
  
  <p>P.S: Please be noticed that I want to access the array by index manually.</p>