title: How to create multi layout in Spring MVC
body: <p>I know about Apache Tiles in Spring, it seem working same jsp:include, but it doesn't solve my problem:
  I want a file with name is layout1.jsp, in this file, I will define a layout like:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;style href="style1.css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="main"&gt;
          &lt;div class="left"&gt;
              &lt;ul&gt;
                  &lt;li&gt;
                  &lt;li&gt;
                  &lt;li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div class="content"&gt;
              &lt;h1&gt;${message }&lt;/h1&gt;
          &lt;/div&gt;
          &lt;div class="footer"&gt;
              &lt;span&gt;This is footer&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And a file is layout2.jsp:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;style href="style2.css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="main"&gt;
          &lt;div class="left2"&gt;
              &lt;ul&gt;
                  &lt;li&gt;
                  &lt;li&gt;
                  &lt;li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div class="content2"&gt;
              &lt;h1&gt;${message }&lt;/h1&gt;
          &lt;/div&gt;
          &lt;div class="footer2"&gt;
              &lt;span&gt;This is footer&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When user chose layout name on combobox, controller will set layout dynamic before render layout.</p>
  
  <p>How should I do?</p>