title: How to include tab contents in spring when using tabbed form
body: <p>I am trying to create a registration page that is using a tabbed view.</p>
  
  <p>It was working perfectly fine when I tried to include all the tab contents inside respective tabs in single page.</p>
  
  <p>Later I wrote the contents of each tab to different jsp pages specifically for each tab and tried to include the jsp pages using </p>
  
  <p>But now all the jsp pages' contents are being listed under a single tab. I mean each tab is displaying contents of other tabs too. </p>
  
  <pre><code>&lt;div class="panel-body"&gt;
                  &lt;div class="reg-panel"&gt;
  
                      &lt;ul id="breadcrumbs-one" class="nav nav-tabs" role="tablist"&gt;
                          &lt;li class="active"&gt;&lt;a data-toggle="tab" href="#main"&gt;Basic
                                  Details&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a data-toggle="tab" href="#tab1"&gt;Grade Details&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a data-toggle="tab" href="#tab2"&gt;Facilities&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a data-toggle="tab" href="#tab3"&gt;Awards&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a data-toggle="tab" href="#"&gt;Documents&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a data-toggle="tab" href="#preview"&gt;Preview&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a data-toggle="tab" href="#submit"&gt;Submit&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                      &lt;div class="tab-content"&gt;
  
                          &lt;div id="main" class="tab-pane fade in active"&gt;
                              &lt;jsp:include page="/WEB-INF/views/basic_details.jsp" /&gt;
   &lt;/div&gt;
  
                          &lt;div id="tab1" class="tab-pane fade"&gt;
                              &lt;jsp:include page="/WEB-INF/views/grade_details.jsp" /&gt;
     &lt;/div&gt;
  
                          &lt;div id="tab2" class="tab-pane fade"&gt;                               
                               &lt;jsp:include page="/WEB-INF/views/grade_details.jsp" /&gt;
     &lt;/div&gt;
  
          .......             and so and so   ......
  </code></pre>
  
  <p>The problem here is that the contents of all the tabs basic details, grade details, awards and all such is being displayed under one tab itself. </p>
  
  <p>Please help me resolve this. Which method should I actually have used? Is it better to use jstl or spring url instead?</p>