title: Can not get value from ModelMap in JSP page
body: <p>i try to use ModelMap in my project, but i cannot access ModelMap value in JSP page.</p>
  
  <p>my 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:p="http://www.springframework.org/schema/p"
      xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
      xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="http://www.springframework.org/schema/beans 
                  http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                  http://www.springframework.org/schema/aop 
                  http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
                  http://www.springframework.org/schema/tx 
                  http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
                  http://www.springframework.org/schema/context
          http://www.springframework.org/schema/context/spring-context-3.0.xsd
                  http://www.springframework.org/schema/mvc 
                  http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"&gt;
      &lt;bean
          class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping" /&gt;
      &lt;bean
          class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"&gt;
      &lt;/bean&gt;
      &lt;context:component-scan base-package="controller"&gt;&lt;/context:component-scan&gt;
      &lt;mvc:annotation-driven /&gt;
  
      &lt;!-- Most controllers will use the ControllerClassNameHandlerMapping above, 
          but for the index controller we are using ParameterizableViewController, 
          so we must define an explicit mapping for it. --&gt;
      &lt;bean id="urlMapping"
          class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"&gt;
          &lt;property name="mappings"&gt;
              &lt;props&gt;
                  &lt;prop key="index.html"&gt;indexController&lt;/prop&gt;
              &lt;/props&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="viewResolver"
          class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
          &lt;property name="viewClass"&gt;
              &lt;value&gt;org.springframework.web.servlet.view.tiles3.TilesView&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="tilesConfigurer"
          class="org.springframework.web.servlet.view.tiles3.TilesConfigurer"&gt;
          &lt;property name="definitions"&gt;
              &lt;list&gt;
                  &lt;value&gt;/WEB-INF/tiles.xml&lt;/value&gt;
              &lt;/list&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;!-- The index controller. --&gt;
      &lt;bean name="indexController"
          class="org.springframework.web.servlet.mvc.ParameterizableViewController"
          p:viewName="index" /&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>my tiles.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!DOCTYPE tiles-definitions PUBLIC
         "-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN"
         "http://tiles.apache.org/dtds/tiles-config_3_0.dtd"&gt;
  &lt;tiles-definitions&gt;
  
      &lt;definition name="index" template="/WEB-INF/jsp/partical/main.jsp"&gt;
          &lt;put-attribute name="content" value="/WEB-INF/jsp/partical/index.jsp" /&gt;
      &lt;/definition&gt;
      &lt;definition name="dangkyphong" template="WEB-INF/jsp/partical/main.jsp"&gt;
          &lt;put-attribute name="content" value="WEB-INF/jsp/partical/dangkyphong.jsp" /&gt;
      &lt;/definition&gt;
      &lt;definition name="quanlyphong" template="/WEB-INF/jsp/partical/main.jsp"&gt;
          &lt;put-attribute name="content" value="/WEB-INF/jsp/partical/quanlyphong.jsp" /&gt;
      &lt;/definition&gt;
      &lt;definition name="quanlymaytinh" template="/WEB-INF/jsp/partical/main.jsp"&gt;
          &lt;put-attribute name="content" value="/WEB-INF/jsp/partical/quanlymaytinh.jsp" /&gt;
      &lt;/definition&gt;
      &lt;definition name="themphong" template="/WEB-INF/jsp/partical/main.jsp"&gt;
          &lt;put-attribute name="content" value="/WEB-INF/jsp/partical/themphong.jsp" /&gt;
      &lt;/definition&gt;
      &lt;definition name="themay" template="/WEB-INF/jsp/partical/main.jsp"&gt;
          &lt;put-attribute name="content" value="/WEB-INF/jsp/partical/themmay.jsp" /&gt;
      &lt;/definition&gt;
      &lt;definition name="chinhsuapc" template="/WEB-INF/jsp/partical/main.jsp"&gt;
          &lt;put-attribute name="content" value="/WEB-INF/jsp/partical/chinhsuapc.jsp" /&gt;
      &lt;/definition&gt;
  &lt;/tiles-definitions&gt;
  </code></pre>
  
  <p>my project free</p>
  
  <p><a href="https://i.stack.imgur.com/uEFJk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uEFJk.png" alt="my project free"></a></p>
  
  <p>i try this: </p>
  
  <pre><code>  @RequestMapping(method = RequestMethod.GET)
      public String index(ModelMap mm) {
          mm.put("title", "Home");
          return "index";
      }
  </code></pre>
  
  <p>in JSP page i try use: <code>${title}</code></p>
  
  <p>but i cannot get a string "Home" in JSP title</p>
  
  <p>please help me solve this issue !
  ----edit My JSP page----</p>
  
  <pre><code>   &lt;%@ page language="java" contentType="text/html; charset=UTF-8"  
      pageEncoding="UTF-8"%&gt;  
  &lt;%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %&gt;
  &lt;%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&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 charset='utf-8'&gt;
          &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
          &lt;title&gt;${title}&lt;/title&gt;
          &lt;tiles:insertAttribute name = "head" ignore="true"&gt;&lt;/tiles:insertAttribute&gt;
          &lt;link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet"&gt;
          &lt;link rel="stylesheet" href="${pageContext.request.contextPath}/css/custom.css" type="text/css" /&gt;
          &lt;link href="${pageContext.request.contextPath}/css/mui.min.css" rel="stylesheet" type="text/css" /&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="sidedrawer" class="navbar-default mui--no-user-select"&gt;&lt;a href="${pageContext.request.contextPath}/index.html"&gt;
                  &lt;div id="sidedrawer-brand" class="mui--appbar-line-height mui--text-title"&gt;Labs Manager&lt;/div&gt;&lt;/a&gt;
              &lt;div class="mui-divider"&gt;&lt;/div&gt;
              &lt;ul&gt;     
                  &lt;strong&gt;Quản Lý Phòng Máy&lt;/strong&gt;
                  &lt;ul&gt;
                      &lt;li class="nav-menu"&gt;
                          &lt;a href="${pageContext.request.contextPath}/index/themphong.html"&gt;
                              &lt;span class="small-nav" data-toggle="tooltip" data-placement="right" title="Home"&gt; 
                                  &lt;span class="glyphicon glyphicon-plus"&gt;&lt;/span&gt; 
                              &lt;/span&gt;
                              &lt;span class="full-nav"&gt; Thêm Phòng &lt;/span&gt;
                          &lt;/a&gt;
                      &lt;/li&gt;
                      &lt;li class="nav-menu"&gt;
                          &lt;a href="${pageContext.request.contextPath}/index/dangkyphong.html"&gt;
                              &lt;span class="small-nav" data-toggle="tooltip" data-placement="right" title="About Us"&gt; 
                                  &lt;span class="glyphicon glyphicon-pencil"&gt;&lt;/span&gt; 
                              &lt;/span&gt;
                              &lt;span class="full-nav"&gt; Đăng Ký Phòng &lt;/span&gt;
                          &lt;/a&gt;
                      &lt;/li&gt;
                      &lt;li class="nav-menu"&gt;
                          &lt;a href="${pageContext.request.contextPath}/index/quanlyphong.html"&gt;
                              &lt;span class="small-nav" data-toggle="tooltip" data-placement="right" title="Contact Us"&gt; 
                                  &lt;span class="glyphicon glyphicon-edit"&gt;&lt;/span&gt; 
                              &lt;/span&gt;
                              &lt;span class="full-nav"&gt; Quản Lý Phòng &lt;/span&gt;
                          &lt;/a&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
                  &lt;strong&gt;Quản Lý Máy Tính&lt;/strong&gt;
                  &lt;ul&gt;
                      &lt;li class="nav-menu"&gt;
                          &lt;a href="${pageContext.request.contextPath}/index/themmay.html"&gt;
                              &lt;span class="small-nav" data-toggle="tooltip" data-placement="right" title="Contact Us"&gt; 
                                  &lt;span class="glyphicon glyphicon-plus"&gt;&lt;/span&gt; 
                              &lt;/span&gt;
                              &lt;span class="full-nav"&gt; Thêm Máy&lt;/span&gt;
                          &lt;/a&gt;
                      &lt;/li&gt;
                      &lt;li class="nav-menu"&gt;
                          &lt;a href="${pageContext.request.contextPath}/index/chinhsuapc.html"&gt;
                              &lt;span class="small-nav" data-toggle="tooltip" data-placement="right" title="Contact Us"&gt; 
                                  &lt;span class="glyphicon glyphicon-edit"&gt;&lt;/span&gt; 
                              &lt;/span&gt;
                              &lt;span class="full-nav"&gt; Chỉnh Sửa &lt;/span&gt;
                          &lt;/a&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;header id="header"&gt;
              &lt;div class="mui-appbar mui--appbar-line-height"&gt;
                  &lt;div class="mui-container-fluid"&gt;
                      &lt;a class="sidedrawer-toggle mui--visible-xs-inline-block mui--visible-sm-inline-block js-show-sidedrawer"&gt;☰&lt;/a&gt;
                      &lt;a class="sidedrawer-toggle mui--hidden-xs mui--hidden-sm js-hide-sidedrawer"&gt;☰&lt;/a&gt;
                      &lt;span class="mui--text-title mui--visible-xs-inline-block mui--visible-sm-inline-block"&gt;Labs Manager&lt;/span&gt;
  
                      &lt;ul  class="nav navbar-nav navbar-right"&gt;
  
                          &lt;li id="user-nav" class="dropdown"&gt;
                              &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Hello, Administrator&lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
                              &lt;ul class="dropdown-menu" id="dropdown-menu"&gt;
                                  &lt;li&gt;&lt;a href="#"&gt;Log out&lt;/a&gt;&lt;/li&gt;
                              &lt;/ul&gt;
                          &lt;/li&gt;
                      &lt;/ul&gt;
  
                  &lt;/div&gt;
  
  
              &lt;/div&gt;
          &lt;/header&gt;
          &lt;div id="content-wrapper"&gt;
              &lt;div class="mui--appbar-height"&gt;&lt;/div&gt;
              &lt;div class="mui-container-fluid"&gt;
                  &lt;!-- Main Content --&gt;
  
                  &lt;tiles:insertAttribute name="content"&gt;&lt;/tiles:insertAttribute&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;footer id="footer"&gt;
                  &lt;div class="mui-container-fluid"&gt;
                      &lt;br&gt;
                      Copyright &amp;COPY; 2016
                  &lt;/div&gt;
              &lt;/footer&gt;
              &lt;script&gt;
                  $(document).ready(function () {
                      $('data-toggle="tooltip"').tooltip();
                  });
  
              &lt;/script&gt;
              &lt;script src="${pageContext.request.contextPath}/js/jquery-2.1.4.min.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script src="${pageContext.request.contextPath}/js/bootstrap.min.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script src="${pageContext.request.contextPath}/js/mui.min.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script src="${pageContext.request.contextPath}/js/script.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>