title: unable to load template file using spring and tile integration
body: <p>I am new to Apache tiles, trying to configure it in spring 4. But the templates, i am extending is not visible in my jsp page.For ex: If i am hitting url "/admin", then content of admin.jsp is visible, nothing else.
  blow is the code snippet.</p>
  
  <p><strong>application-context.xml</strong></p>
  
  <pre><code>&lt;beans:bean id="viewResolver"
          class="org.springframework.web.servlet.view.tiles3.TilesViewResolver" /&gt;
  
      &lt;beans:bean id="tilesConfigurer"
          class="org.springframework.web.servlet.view.tiles3.TilesConfigurer"&gt;
          &lt;beans:property name="definitions"&gt;
              &lt;beans:list&gt;
                  &lt;beans:value&gt;/WEB-INF/layouts/views.xml&lt;/beans:value&gt;
              &lt;/beans:list&gt;
          &lt;/beans:property&gt;
      &lt;/beans:bean&gt;
  </code></pre>
  
  <p><strong>views.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 3.0//EN"  
          "http://tiles.apache.org/dtds/tiles-config_3_0.dtd"&gt;
  &lt;tiles-definitions&gt;
  
   &lt;definition name="DefaultTemplate" 
        template="/WEB-INF/views/template/SiteTemplate.jsp"&gt;
  &lt;put-attribute name="title" value="Home" /&gt;
  &lt;put-attribute name="header" value="/WEB-INF/views/template/header.jsp" /&gt;
  &lt;put-attribute name="body" value="This is body" /&gt;
  &lt;put-attribute name="footer" value="/WEB-INF/views/template/footer.jsp" /&gt;
  &lt;/definition&gt;
  &lt;definition name="admin" extends="DefaultTemplate"&gt;
      &lt;put-attribute name="body"
          value="/WEB-INF/views/admin.jsp" /&gt;
  &lt;/definition&gt;
  &lt;/tiles-definitions&gt;
  </code></pre>
  
  <p><strong>SiteTemplate.jsp</strong></p>
  
  <pre><code>&lt;%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%&gt;
  &lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;DCAT&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div&gt;
  &lt;!-- Header --&gt;
  &lt;tiles:insertAttribute name="header" /&gt;
  &lt;!-- Body Page --&gt;
  &lt;div&gt;
  &lt;tiles:insertAttribute name="body" /&gt;
  &lt;/div&gt;
  &lt;!-- Footer Page --&gt;
  &lt;tiles:insertAttribute name="footer" /&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Footer.jsp</strong></p>
  
  <pre><code>&lt;div&gt;
      &lt;h2&gt;Footer&lt;/h2&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Header.jsp</strong></p>
  
  <pre><code>&lt;div&gt;
      &lt;h2&gt;Header&lt;/h2&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>admin.jsp</strong></p>
  
  <pre><code>&lt;div style="margin:10px;"&gt;
  &lt;h3&gt;SpringMVC - Tiles3 Integration&lt;/h3&gt;
  &lt;p&gt;By:- Thita Nayak&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Admin controller</strong></p>
  
  <pre><code>@Controller
  public class AdminController {
  
      private static final Logger logger = LoggerFactory.getLogger(AdminController.class);
  
      @RequestMapping(value = "/admin", method = RequestMethod.GET)
      public String admin(){
  
          return "admin";
  
      }
  }
  </code></pre>