Click here to Skip to main content
14,241,167 members
Rate this:
Please Sign up or sign in to vote.
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:
map.put("list1",l1);
map.put("list2",l2);
return map:

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


In Jsp page:
<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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100