title: Why "c:forEach" loop returns nothing in this jsp?
body: <p>This should have been easy. I created <code>c:forEach</code> loop in my jsp page. This loop should display the objects that were extracted by my Service class from the db. Service class extracts the List correctly and the List in not empty. So the problem should be in my jsp page. When creating this jsp I followed the tutorial and that's why I don't understand what is not working here.
  Here is it:</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=UTF-8"
      pageEncoding="UTF-8"%&gt;
  &lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;
  &lt;%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;link
      href="${pageContext.request.contextPath}/resources/css/poem-list.css"
      rel="stylesheet" /&gt;
  &lt;title&gt;Poem Collection&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="maincontainer"&gt;
                  &lt;p&gt;Poems&lt;/p&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div id="contentcolumn"&gt;
              &lt;form method="GET"&gt;
                  &lt;table align="center"&gt;
                      &lt;!-- tbody --&gt;
                      &lt;c:forEach var="poem" items="${poems}"&gt;
                          &lt;tr&gt;
                              &lt;td&gt;
                                  &lt;p class="title"&gt;${poem.title}&lt;/p&gt;
                                  &lt;p class="annotation"&gt;by DUMMY&lt;br&gt; 
                                      written in ${poem.date}&lt;a href="${pageContext.request.contextPath}/collection.html"&gt;
                                  &lt;input type="button" class="view" value="View" /&gt;
                                  &lt;/a&gt;
                                  &lt;/p&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/c:forEach&gt;
                      &lt;!-- /tbody--&gt;
                  &lt;/table&gt;
              &lt;/form&gt;
          &lt;/div&gt;
          &lt;div id="bottom-footer"&gt;
              &lt;p&gt;My Collection&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Controller that displays collection and invokes <code>poem-list.jsp</code> with <code>forEach</code> loop.</p>
  
  <pre><code>@RequestMapping(value = "/collection")
  public ModelAndView collectionPage() {
      ModelAndView modelAndView = new ModelAndView("poem-list");
      List&lt;Poem&gt; poems = poemService.getPoems();
      modelAndView.addObject("poems", poems);
      return new ModelAndView("poem-list");
  }
  </code></pre>
  
  <p>And my Service class that extracts data from db:</p>
  
  <pre><code>@SuppressWarnings("unchecked")
  public List&lt;Poem&gt; getPoems() {
      return getCurrentSession().createQuery("from Poem").list();
  }
  </code></pre>