title: Struts OR Tiles OR ???...... JSP template solution
body: <p>currently I'm using a JSP templating system which uses <a href="http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb.html" rel="nofollow">this example's lib</a> ("/WEB-INF/tlds/template.tld").</p>
  
  <p>I'm not even sure how it's called.</p>
  
  <p>Anyway it seems like it's not too developed, it makes problems with form POST method, I have no idea who made it (just found it) and I've heard about Apache's Struts &amp; Tiles.</p>
  
  <p>I'm not even sure that Struts does what I'm talking about.</p>
  
  <p><strong>Down to business:</strong><br>
  A page in my site has this JSP content, that utilizes the template:</p>
  
  <pre><code>&lt;%@ taglib uri="/WEB-INF/tlds/template.tld" prefix="template"%&gt;
  &lt;template:insert template="/WEB-INF/main_template_page/template.jsp"&gt;
      &lt;template:put name="title" content="Title here" direct="true" /&gt;
      &lt;template:put name="content" content="/content.jsp" /&gt;
  &lt;/template:insert&gt;
  </code></pre>
  
  <p>The template is:</p>
  
  <pre><code>&lt;%@ taglib uri='/WEB-INF/tlds/template.tld' prefix='template'%&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;
      &lt;template:get name='title' /&gt;
  &lt;/title&gt;
  &lt;link type="text/css" rel="stylesheet" href="/styles.css" /&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;div id="div_header"&gt;
          &lt;div class="content"&gt;
              &lt;%@include file='header.html'%&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div id="div_content"&gt;
          &lt;template:get name='content' /&gt;
      &lt;/div&gt;
  
      &lt;div id="div_footer"&gt;
          &lt;%@include file='footer.html'%&gt;
      &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So as you see each page gives the template some parameters and it all works nice.</p>
  
  <p>Is there a "well-established" system that does that? I'm sure there is; What its name? Which would you use for pretty much simple pages, but, has to support dynamic ones with code (JSP).</p>