title: How to have a struts2 form in a table?
body: <p>I am trying to have my form in a table but it generates a table and makes it a mess.
  the generated table is as following:</p>
  
  <pre><code> &lt;div&gt;
  &lt;s:form action="myaction" &gt;
    &lt;table border="1"&gt;
     &lt;tr&gt;
      &lt;td&gt;&lt;s:textfield name="name" label="Name" /&gt;&lt;/td&gt;
      &lt;td&gt;&lt;s:textfield name="family" label="Family" /&gt;&lt;/td&gt;
      &lt;td&gt;&lt;s:submit/&gt;&lt;/td&gt;
     &lt;/tr&gt;
    &lt;/table&gt;
     &lt;/s:form&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>Source code :</p>
  
  <pre><code>&lt;div&gt;
   &lt;form id="myaction" name="myaction" action="/application/myaction.action" method="post"&gt;
          &lt;table class="wwFormTable"&gt;   &lt;&lt;&lt;generated table
         &lt;table border="1"&gt;
           &lt;tr&gt;
           &lt;td&gt;&lt;tr&gt;
                  &lt;td class="tdLabel"&gt;&lt;label for="Search_Name" class="label"&gt;Name:&lt;/label&gt;&lt;/td&gt;
               &lt;td
                 &gt;&lt;input type="text" name="Name" value="" id="Search_Name"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;/td&gt;
            &lt;td&gt;&lt;tr&gt;
                 &lt;td class="tdLabel"&gt;&lt;label for="Search_Family" class="label"&gt;Family:&lt;/label&gt;&lt;/td&gt;
           &lt;td
            &gt;&lt;input type="text" name="Family" value="" id="Search_Family"/&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;/td&gt;
    &lt;td&gt;&lt;tr&gt;
         &lt;td colspan="2"&gt;&lt;div align="right"&gt;&lt;input type="submit" id="Search_0" value="Submit"/&gt;
           &lt;/div&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;/td&gt;
     &lt;/tr&gt;
     &lt;/table&gt;
      &lt;/table&gt;&lt;/form&gt;
  </code></pre>