Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi. i have two resultSet values. i have added two different List. and add them these two list to map.
Like in Dao class:
Java
map.put("list1",l1);
map.put("list2",l2);
return map:

In Action class:
Java
Map<String,List<CurrentStock>> data=BMR_Details.Current_stock(CurrentStock);
request.setAttribute("data", data);


In Jsp page:
HTML
<logic:iterate name="data" id="current" scope="request">
<bean:define id="CurrentStock" name="current" property="value"/> 
<logic:iterate name="CurrentStock" id="myString" >
<tr>
<td><logic:notEmpty name="ing_name" ><bean:write  name="myString" property="ing_name"/></logic:notEmpty></td>
<td><logic:notEmpty name="myString"><bean:write  name="myString" property="quantity"/></logic:notEmpty></td>
<td><logic:notEmpty name="myString"><bean:write  name="myString" property="std_qty"/></logic:notEmpty></td>
<td><logic:notEmpty name="myString"><bean:write  name="myString" property="units"/></logic:notEmpty></td>

But it displays first list values as null then list one values. I want only list 1 values in this logic:iterate.
I want display List1 values in one table and list2 values in another table.
How to do. please help me


Thanks In advance
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900