title: Show data from controller into jsp page
body: <p>I saw a lot of examples how to show data, which I defined and put into java controller, but I can't do it. The code is here.</p>
  
  <pre><code>@Controller
  public class HomeController {
      @RequestMapping({"/","/test"})
      public String showHomePage(ModelMap model) {
          String mes = "Here I am";
          model.addAttribute("message",mes);
          return "new";
      }
  }
  </code></pre>
  
  <p>new.jsp file</p>
  
  <pre><code>&lt;%@ page contentType="text/html;charset=UTF-8" language="java" %&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  ${message}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I'm starting the jsp page show only like this ${message}</p>
  
  <p>mvc-dispatcher-servlet.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:context="http://www.springframework.org/schema/context"
         xmlns:mvc="http://www.springframework.org/schema/mvc"
         xsi:schemaLocation="http://www.springframework.org/schema/beans
              http://www.springframework.org/schema/beans/spring-beans.xsd
              http://www.springframework.org/schema/context
              http://www.springframework.org/schema/context/spring-context.xsd
              http://www.springframework.org/schema/mvc
              http://www.springframework.org/schema/mvc/spring-mvc.xsd"&gt;
  
      &lt;mvc:default-servlet-handler/&gt;
      &lt;mvc:annotation-driven/&gt;
      &lt;context:component-scan base-package="ru.sbt"/&gt;
  
      &lt;bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt; 
          &lt;property name="prefix" value="/WEB-INF/views/"/&gt;
          &lt;property name="suffix" value=".jsp"/&gt;
      &lt;/bean&gt;
  </code></pre>