title: Unresolved EL expression displaying list on JSP page with Spring MVC
body: <p>I'm trying to do something really simple. I just want to display a list on a JSP page from in a Spring MVC application. I've googled plenty and there are lots of examples (including some on Stackoverflow), but it's just not working for me. I'm using Maven and Spring 3.2.4. These are my files:</p>
  
  <p><strong>Item.java</strong></p>
  
  <pre><code>public class Item 
  {
      private final String value;
  
      public Item(String value)
      {
          this.value = value;
      }
  
      public String getValue()
      {
          return value;
      }
  }
  </code></pre>
  
  <p><strong>MainController.java</strong></p>
  
  <pre><code>@Controller
  public class MainController 
  {
      @RequestMapping("/")
      public String home(ModelMap map) 
      {           
      final List&lt;Item&gt; items = new ArrayList&lt;Item&gt;();
          items.add(new Item("Value 1"));
          items.add(new Item("Value 2"));
          items.add(new Item("Value 3"));
          items.add(new Item("Value 5"));     
          map.addAttribute(items);
          return "list";
      }   
  }
  </code></pre>
  
  <p><strong>list.jsp</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
  &lt;%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %&gt;
  &lt;%@taglib uri="http://www.springframework.org/tags" prefix="spring"%&gt;
  
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;title&gt;Naked List&lt;/title&gt;
      &lt;body&gt;
          &lt;h2&gt;Naked List&lt;/h2&gt;
          &lt;p&gt; 
              &lt;c:forEach items="${itemList}" var="item"&gt;
                  &lt;c:out value="${item.value}"/&gt;
                  &lt;br/&gt;
              &lt;/c:forEach&gt;
          &lt;/p&gt;            
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>applicationContext.xml</strong></p>
  
  <pre><code>&lt;?xml  version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="..."&gt;
  
      &lt;context:annotation-config /&gt;
      &lt;context:component-scan base-package="org.ne.nakedlist" /&gt;
  
      &lt;mvc:annotation-driven/&gt;
      &lt;mvc:resources mapping="/resources/**" location="/resources/"/&gt;
  
      &lt;bean id="jspViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
          &lt;property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /&gt;
           &lt;property name="prefix" value="/WEB-INF/views/" /&gt;
          &lt;property name="suffix" value=".jsp" /&gt;
      &lt;/bean&gt;  
  
  &lt;/beans&gt;
  </code></pre>
  
  <p><strong>webxml</strong></p>
  
  <pre><code>&lt;!DOCTYPE web-app PUBLIC
   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd" &gt;
  
  &lt;web-app&gt;
    &lt;display-name&gt;Naked List&lt;/display-name&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;classpath:applicationContext.xml&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;listener&gt;
          &lt;listener-class&gt;
              org.springframework.web.context.ContextLoaderListener
          &lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;spring&lt;/servlet-name&gt;
          &lt;servlet-class&gt;
              org.springframework.web.servlet.DispatcherServlet
          &lt;/servlet-class&gt;        
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;spring&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;  
   &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0     http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;org.ne.nakedlist&lt;/groupId&gt;
  &lt;artifactId&gt;org.ne.nakedlist&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;name&gt;Naked List&lt;/name&gt;
  &lt;description&gt;Naked List&lt;/description&gt;
  &lt;properties&gt;
      &lt;java.version&gt;1.7&lt;/java.version&gt;
      &lt;org.springframework.version&gt;3.2.4.RELEASE&lt;/org.springframework.version&gt;
  &lt;/properties&gt;
  &lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
          &lt;version&gt;3.0.1&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;version&gt;1.2.9&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;taglibs&lt;/groupId&gt;
          &lt;artifactId&gt;standard&lt;/artifactId&gt;
          &lt;version&gt;1.1.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;jstl&lt;/artifactId&gt;
          &lt;version&gt;1.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.inject&lt;/groupId&gt;
          &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
          &lt;version&gt;1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.5.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;${java.version}&lt;/source&gt;
                  &lt;target&gt;${java.version}&lt;/target&gt;
                  &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;copy&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;artifactItems&gt;
                              &lt;artifactItem&gt;
                                  &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
                                  &lt;artifactId&gt;jetty-runner&lt;/artifactId&gt;
                                  &lt;version&gt;7.4.5.v20110725&lt;/version&gt;
                                  &lt;destFileName&gt;jetty-runner.jar&lt;/destFileName&gt;
                              &lt;/artifactItem&gt;
                          &lt;/artifactItems&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
      &lt;finalName&gt;nakedlist&lt;/finalName&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I run the application, what I get is:</p>
  
  <pre><code>Naked List
  
  ${item.value} 
  </code></pre>
  
  <p>I'm really hoping I'm missing some really obvious configuration and this is a quick easy fix.</p>