title: tiles:insertAttribute throwing exception
body: <p>I am trying to build an application having nested tiles.</p>
  
  <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.1//EN" 
  "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"&gt;
  &lt;tiles-definitions&gt;
  &lt;definition name="base.defination" template="/WEB-INF/jsp/layout.jsp"&gt;
  &lt;put-attribute name="title" value="Ashoka Travels"/&gt;
  &lt;put-attribute name="header" value="/WEB-INF/jsp/header.jsp"/&gt;
  &lt;put-attribute name="body" value=""/&gt;
  &lt;put-attribute name="footer" value="/WEB-INF/jsp/footer.jsp"/&gt;
  &lt;/definition&gt;
  
          &lt;definition name="transportBody" extends="base.defination"&gt;
                  &lt;put-attribute name="body" value="/WEB-INF/jsp/transportMain.jsp" cascade="true"/&gt;
  
          &lt;/definition&gt;
  
          &lt;definition name="booking" extends="transportBody"&gt;
                          &lt;put-attribute name="bookingRadio" value="/WEB-INF/jsp/bookingLayout.jsp" cascade="true"/&gt;
  
          &lt;/definition&gt;
  
          &lt;definition name="transportBodyHeader" extends="booking"&gt;
                  &lt;put-attribute name="HeaderBookingTypeSelect" value="/WEB-INF/jsp/primaryPage/bookingTypeSelect.jsp" cascade="true"/&gt;
                  &lt;put-attribute name="BodyTransportSelector" value="/WEB-INF/jsp/primaryPage/bookingTransportSelect.jsp" cascade="true"/&gt;
                  &lt;put-attribute name="FooterTransportSelectorBooking" value="/WEB-INF/jsp/primaryPage/bookingTransportSearch.jsp" cascade="true"/&gt;
          &lt;/definition&gt;
  
  &lt;/tiles-definitions&gt;
  </code></pre>
  
  <p><strong>bookingLayout.jsp</strong></p>
  
  <pre><code>&lt;body&gt;
  &lt;div id="transportBookingLayout"&gt;
              &lt;div&gt;&lt;tiles:insertAttribute name="HeaderBookingTypeSelect"/&gt;&lt;/div&gt;
              &lt;div&gt;&lt;tiles:insertAttribute name="BodyTransportSelector"/&gt;&lt;/div&gt;
              &lt;div&gt;&lt;tiles:insertAttribute name="FooterTransportSelectorBooking"/&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>This is <strong>transportMain</strong> page which includes another JSP page through <code>&lt;tiles:insertAttribute&gt;</code>:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div id="mainTransport" style="border:1px solid red"&gt;
          &lt;div id="ticketBookingDiv" class="bookTicket" &gt;
  
               &lt;%-- &lt;jsp:include page="/WEB-INF/jsp/primaryPage/hello.jsp" flush="true"/&gt; --%&gt;
          &lt;tiles:insertAttribute name="bookingRadio"&gt;&lt;/tiles:insertAttribute&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
    &lt;/body&gt;
  </code></pre>
  
  <p>I am getting this exception:</p>
  
  <pre>
  Servlet.service() for servlet [SpringMVC] in context with path [/Travels_SpringMVC] threw exception [An exception occurred processing JSP page /WEB-INF/jsp/transportMain.jsp at line 32
  
  29:         
  30:         
  31:               --%>
  32:         
  33:         
  34:       
  35: 
  
  
  Stacktrace:] with root cause
  org.apache.tiles.template.NoSuchAttributeException: Attribute 'bookingRadio' not found.</pre>