title: How do I extend templates in tiles?
body: <p>I have one master template that has the general site layout frame: "/WEB-INF/jsp/common.jsp"
  Then I have another template that will be generally used for another number of pages with similar layout: "/WEB-INF/jsp/features/common.jsp"</p>
  
  <p>The features template basically defines the content of attribute "content" of the "master" template.</p>
  
  <p>I have tried to solve this the following way:</p>
  
  <pre><code>&lt;definition name="product.common" template="/WEB-INF/jsp/common.jsp"&gt;
      &lt;put-attribute name="content" value="/WEB-INF/jsp/features/common.jsp" /&gt;
  &lt;/definition&gt;
  &lt;definition name="features/index" extends="product.common"&gt;
      &lt;put-attribute name="title" value="Features" /&gt;
      &lt;put-attribute name="rightContent" value="/WEB-INF/jsp/features/index.jsp" /&gt;
  &lt;/definition&gt;
  </code></pre>
  
  <p>But this does not work. I get the following error message in my stack trace:</p>
  
  <blockquote>
    <p>org.apache.tiles.template.NoSuchAttributeException: Attribute 'rightContent' not found.</p>
  </blockquote>
  
  <p>But the features-template does have the following:</p>
  
  <pre><code>&lt;tiles:insertAttribute name="rightContent" /&gt;
  </code></pre>
  
  <p>Any ideas?</p>