title: how to get the element of a list inside jsp using JSTL?
body: <p>I have such this code inside my Spring MVC java controller class:</p>
  
  <pre><code>@RequestMapping(value = "jobs", method = { RequestMethod.GET })
  public String jobList(@PathVariable("username") String username, Model model) {
      JobInfo[] jobInfo;
      JobStatistics js;
      LinkedList&lt;JobStatistics&gt; jobStats = new LinkedList&lt;JobStatistics&gt;();
      try {
          jobInfo = uiClient.getJobs(username);
             for (int i = 0; i &lt; jobInfo.length; i++) {
               js = uiClient.getJobStatistics(jobInfo[i].getJobId());
               jobStats.add(js);
             }
          model.addAttribute("jobs", jobInfo);
          model.addAttribute("jobStats", jobStats);
      }
  </code></pre>
  
  <p>which uiClient will get some data from database using RMI ...
  now I want to show the jobs &amp; related statistic inside my JSP file using JSTL :</p>
  
  <pre><code>&lt;c:set var="stats" value="${jobStats}" /&gt;
          &lt;c:forEach var="jobs" items="${jobs}"&gt;
             &lt;c:set var="jobID" value="${jobs.JobId}"/&gt;
            &lt;table&gt;
              &lt;tr class="tr1"&gt;
                  &lt;td&gt;${jobs.Topic}&lt;/td&gt;
                  &lt;td&gt;${stats.get(i).No}&lt;/td&gt;
              &lt;/tr&gt;
            &lt;/table&gt;
          &lt;/c:forEach&gt;
  </code></pre>
  
  <p>How do I get the <code>LinkedList</code> elements of Model inside my JSP using JSTL? There might be no no counter <code>i</code> been put in scope for me.</p>