Display single list value in 2 different columns in a JSP
<p>How can I display list value in two different columns according to ID's?</p>

<pre><code>&lt;div id="mappedORg"&gt;
  &lt;table width="100%" id="myTable" class="sortable"&gt;
    &lt;tr&gt;
      &lt;h1&gt;Mapped Organization&lt;/h1&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;&lt;strong&gt;&lt;s:property value="getText('global.univeristy')" /&gt;&lt;/strong&gt;&lt;/th&gt;
        &lt;th &gt;&lt;strong&gt;&lt;s:property value="getText('global.college')" /&gt;&lt;/strong&gt;&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;s:iterator value="userOrgMappedList" var="quesvar" status="questat"&gt;
      &lt;tr&gt;
        &lt;td valign="top" class="style11" style="width: 20%;"&gt;&lt;s:property  value="userOrgMappedList[#questat.index].OrgName"/&gt;&lt;/td&gt;
      &lt;/s:iterator&gt;
      &lt;/tr&gt;
</code></pre>

<p>Here is my query for fetching university and college</p>

<pre><code>SELECT UOM.Organization_ID, OM.Organization_Name, OM.Organization_Type_ID, UOM.Is_Active,OM.Organization_Parent_Id FROM T_User_Organization_Map UOM  
INNER JOIN M_Organization_Master OM ON UOM.Organization_ID = OM.Organization_ID 
INNER JOIN M_Organization_Type_Master OTM ON OM.Organization_Type_ID=OTM.Organization_Type_ID
LEFT OUTER JOIN M_Organization_Master LOM ON OM.Organization_Parent_Id = LOM.Organization_ID WHERE UOM.User_ID IN (' 1 ')  AND OM.Is_Active = 1 ORDER BY OM.Organization_Name


Query is returing organization_parent_id as whose organization_id is university for that particular organization.
</code></pre>

<p>I want to display university and college in different column as different university has different college and all are fetching from same list 
usrOrgMapping .  How can I display all College with respect to university.
How can I perform this operation in jsp page?</p>