title: Link a JSP file within another JSP
body: <p>Im trying to split my JSP code up so that its not all in one file. I have 2 tabs - Home and Test. Here is my code:</p>
  
  <pre><code>&lt;ul&gt;
     &lt;li&gt;&lt;a href="#tabHome"&gt;Home&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#test"&gt;Test&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>The problem is that when the home tab loads, it also loads the test page. Here is how i link to the test page:</p>
  
  <pre><code>&lt;div id="test"&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;jsp:include page="test.jsp" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and the test.jsp:</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;
      &lt;td&gt;
          &lt;div&gt;
          &lt;table width="100%" border="0"&gt;
          &lt;col width="14%"&gt;
              &lt;form:form id="testForm" method="post" action="/test/testing
              &lt;tr&gt;
                  &lt;td&gt; SYSTEM SETTINGS &lt;/td&gt;
              &lt;/tr&gt;
              &lt;/form:form&gt;
           &lt;/table&gt;
           &lt;/div&gt;
       &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;    
  </code></pre>
  
  <p>What am I doing wrong? How can I get it to only show the test.jsp when the tab is clicked? </p>