title: How can I make title dynamically?
body: <p>I'm developing BBS in struts2 and tiles(2) framework.</p>
  
  <p>I want to push a value in ActionSupport class and pop the value in layout.jsp of tiles. but i just keep failing to access to the value.</p>
  
  <p>I will explain my works step by step.</p>
  
  <p>1) Users click a link to view an article at list page. And BoardView class will be called as defined in struts.xml</p>
  
  <p>--list.jsp--<br>
  <code>&lt;a href="view_board?num=${num}"&gt; ${ subject } &lt;/a&gt;</code></p>
  
  <p>--struts.xml--<br>
  <code>&lt;action name="View_board" class="board.BoardView"&gt;<br>
      &lt;result type="tiles"&gt;board.view&lt;/result&gt;<br>
  &lt;/action&gt;</code></p>
  
  <p>2)Action class will put title into the value stack... right?</p>
  
  <p>--BoardView class--</p>
  
  <pre><code> 
  public class BoardView extends ActionSupport
  
      private String title;
  
      public void Execute() throws Exception {
          ...  
          setTitle(board.getSubject());
          return SUCCESS; 
      }
      ...  
      (setter and getter of title)  
  </code></pre>
  
  <p>3) As ActionClass returns SUCCESS, it will go to tiles definition named  board.view<br>
  --struts.xml--<br>
  <code>&lt;action name="View_board" class="board.BoardView"&gt;<br>
      &lt;result type="tiles"&gt;board.view&lt;/result&gt;<br>
  &lt;/action&gt;</code></p>
  
  <p>4)Here's the tiles-def.xml and the problem. I think the value of 'title' can't be popped from value stack.<br>
  ==tiles-def.xml==<br>
  <code>&lt;definition name="board.view" extends="layout"&gt;<br>
    &lt;put-attribute name="title" value="%title" /&gt;<br>
    &lt;put-attribute name="body" value="/board/view.jsp" /&gt;<br>
  &lt;/definition&gt;</code><br>
  (I can't indent with tags... sorry)<br>
  Here's the layout.jsp
  ==layout.jsp==<br>
  <code>...
  &lt;title&gt;&lt;tiles:getAsString name="title" /&gt;&lt;/title&gt;
  ...</code></p>
  
  <p>I tried to replace the value attribute to %{title}, $title and ${title}. But nothings worked out. Web Browser just shows the string itself($title). </p>
  
  <p>I don't know what to do... please help me.  </p>
  
  <p>I hope you all understand my works despite my bad explanation. </p>