title: struts 2, tiles 2 dynamic title
body: <p>I am using tiles 2.0.6 as my template framework together with struts 2.1.6. I am writing a simple cms page and want to let the user to define the title of each html page.</p>
  
  <p>I have a title definition like this</p>
  
  <pre><code>    &lt;definition name="base" template="/WEB-INF/jsp/templates/base.jsp"&gt;
          &lt;put-attribute name="title" value=" "/&gt;
          &lt;put-attribute name="header" value="/WEB-INF/jsp/templates/header.jsp"/&gt;  
          &lt;put-attribute name="content" value="dummy"/&gt;
          &lt;put-attribute name="footer" value="/WEB-INF/jsp/templates/footer.jsp"/&gt;   
          &lt;put-attribute name="search" value="/WEB-INF/jsp/search.jsp"/&gt;
      &lt;/definition&gt;    
      &lt;definition name="staticview" extends="base"&gt;
          &lt;put-attribute name="title" value=" - Static"/&gt;
          &lt;put-attribute name="content" value="/WEB-INF/jsp/static/view.jsp"/&gt;
      &lt;/definition&gt;  
  </code></pre>
  
  <p>Instead of making the title a jsp, is there a way to dynamically override the title (String) on my header.jsp in the later jsp attribute, for example view.jsp. Or even 1 step further using EL</p>
  
  <pre><code>&lt;put-attribute name="title" value="%{title}"/&gt;
  </code></pre>
  
  <p>and have it pick up the title on the struts ognl dynamically.</p>
  
  <p>Please advise</p>
  
  <p>Thanks in advance</p>