title: Good JSP code structure for header and footer
body: <p>I currently have following code structure of my JSP pages:</p>
  
  <p><strong>MyPage.jsp</strong></p>
  
  <pre><code>&lt;jsp:include page="header.jsp"/&gt;
  Specific page content
  &lt;jsp:include page="footer.jsp"/&gt;
  </code></pre>
  
  <p>However, this means that the header and footer code do not have a correct HTML structure. For example, this is simplified header and footer code:</p>
  
  <p><strong>header.jsp</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;title&gt;${param.pageTitle}&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="container" style="margin-top: 80px;"&gt;
  </code></pre>
  
  <p><strong>footer.jsp</strong></p>
  
  <pre><code>        &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>As a result, IDE gives a warning about "missing start tag" / "missing end tag". I don't feel good about disabling the warning entirely since it may find legitimate issues with HTML structure.</p>
  
  <p>Is there a cleaner way to structure the JSP code so that I can still reuse header and footer code in some good way?</p>