I am trying to load order data from different table.
I have displayed data also from tables using JOIN
query.
This Is my o/p :
I want something like this :
The Order ID i.e. No. here should be displayed once, if it repeats.
My JSP Code :
<table class="table table-condensed">
<%
List<String> oIdList = (List<String>)request.getAttribute("oIdList");
List<String> pNameList = (List<String>)request.getAttribute("pNameList");
List<String> pQtyList = (List<String>)request.getAttribute("pQtyList");
List<String> pTimeList = (List<String>)request.getAttribute("pTimeList");
List<Boolean> pStatusList = (List<Boolean>)request.getAttribute("statusList");
%>
<thead>
<tr>
<th width="8%">No.</th>
<th width="23%">Product Name</th>
<th width="20%">Product Qty</th>
<th width="18%">Order Time</th>
<th width="22%"><div align="center">Order Status</div></th>
</tr>
</thead>
<tbody>
<%
for(int i = 0; i<pNameList.size(); i++)
{
%>
<tr>
<td><%= oIdList.get(i) %></td>
<td class="center"><%= pNameList.get(i) %></td>
<td class="center"><%= pQtyList.get(i) %></td>
<td class="center"><%= pTimeList.get(i) %></td>
<%
if(pStatusList.get(i))
{
%>
<td class="center"><div align="center"><span class="label label-success">Delivered</span></div></td>
<%
}
else
{
%>
<td style="text-align: center;" width="9%"><span class="label">Pending</span></td>
<%
}
%>
</tr>
<%
}
%>
</tbody>
</table>
So Any Suggestion Please..