title: I cannot display dynamic page title using spring 3 and apache tiles 2.2
body: <p>I have a problem using spring 3 and tiles 2.2.2 . I can't display a dynamic page title.
  These are my config/jsp files:</p>
  
  <p><strong>layout.jsp</strong></p>
  
  <pre><code>&lt;%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%&gt;
  &lt;%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;tiles:getAsString name="title" ignore="true"/&gt;&lt;/title&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;tiles:insertAttribute name="header" /&gt;
          &lt;div id="content-outer"&gt;
              &lt;div id="content-wrapper" class="container_16"&gt;
                  &lt;tiles:insertAttribute name="body" /&gt;
                  &lt;tiles:insertAttribute name="menu" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;tiles:insertAttribute name="footer" /&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Spring config file:</strong></p>
  
  <pre><code>&lt;bean id="tilesviewResolver"
      class="org.springframework.web.servlet.view.tiles2.TilesViewResolver"&gt;
      &lt;property name="order" value="0" /&gt;
      &lt;property name="requestContextAttribute" value="requestContext" /&gt;
      &lt;property name="viewClass"
          value="org.springframework.web.servlet.view.tiles2.TilesView" /&gt;
  &lt;/bean&gt;
  &lt;bean id="tilesConfigurer"
      class="org.springframework.web.servlet.view.tiles2.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;property name="tilesProperties"&gt;
          &lt;props&gt;
              &lt;prop key="org.apache.tiles.evaluator.AttributeEvaluator"&gt;org.apache.tiles.evaluator.el.ELAttributeEvaluator
              &lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p><strong>tiles.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!DOCTYPE tiles-definitions PUBLIC
         "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
         "http://tiles.apache.org/dtds/tiles-config_2_0.dtd"&gt;
  &lt;tiles-definitions&gt;
      &lt;definition name="base.definition" template="/WEB-INF/views/layout.jsp"&gt;
          &lt;put-attribute name="title" value="" /&gt;
          &lt;put-attribute name="header" value="/WEB-INF/views/inc/header.jsp" /&gt;
          &lt;put-attribute name="menu" value="/WEB-INF/views/inc/menu.jsp" /&gt;
          &lt;put-attribute name="body" value="" /&gt;
          &lt;put-attribute name="footer" value="/WEB-INF/views/inc/footer.jsp" /&gt;
      &lt;/definition&gt;
  
      &lt;definition name="item/itemDetail" extends="base.definition"&gt;
          &lt;put-attribute name="title" value="%{title}"/&gt;
          &lt;put-attribute name="body" value="/WEB-INF/views/item/itemDetail.jsp" /&gt;
      &lt;/definition&gt;
  
  &lt;/tiles-definitions&gt;
  </code></pre>
  
  <p>the page title isn't replaced with title value rendered by controller, instead %{title}. </p>
  
  <p>Thanks in advance</p>