title: How can a JSP page list two different beans in the same table?
body: <p>I have a <code>.jsp</code> page with this code:</p>
  
  <pre><code>&lt;tbody&gt;
      &lt;c:forEach items="${companies}" var="companies"&gt;
          &lt;tr&gt;
              &lt;td&gt;${companies.id}&lt;/td&gt;
              &lt;td&gt;${companies.name}&lt;/td&gt;
              &lt;td&gt;${companies.email}&lt;/td&gt;
              &lt;td&gt;${companies.countryId}&lt;/td&gt;
              &lt;td&gt;${companies.sendToIdes}&lt;/td&gt;
              &lt;td&gt;${companies.senderId}&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/c:forEach&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>and this code:</p>
  
  <pre><code>&lt;tbody&gt;
      &lt;c:forEach items="${countries}" var="countries"&gt;
          &lt;tr&gt;
              &lt;td&gt;${countries.id}&lt;/td&gt;
              &lt;td&gt;${countries.code}&lt;/td&gt;
              &lt;td&gt;${countries.name}&lt;/td&gt;
              &lt;td&gt;${countries.model}&lt;/td&gt;
              &lt;td&gt;${countries.hctaId}&lt;/td&gt;
              &lt;td&gt;${countries.certificate}&lt;/td&gt;
              &lt;td&gt;${countries.signature}&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/c:forEach&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>See that <code>companies</code> has <code>countryId</code> and <code>countries</code> has <code>id</code>, they are related with those 2 informations.</p>
  
  <p>I need to insert a <code>countries.name</code> inside my <code>companies</code> related with <code>id</code> and <code>countryId</code>.</p>