Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=7460897
By: uday36

Hello Friends,

I am facing trouble using Hash Map with Display Tag.
I have build a Hashmap whose key will contain Date and value would contain a
List.
Then I have put this Map into a List.
Now In the view, I want to display Map key(i.e Date) as Header of the column
and Map value (i.e List in my case) as rows in that column.

Does Any one has idea of the Display tag syntax to be used ?

Thanx


Here is my .jsp code snippet:- 

<display:table  name="relDetails" id="items"  requestURI 
="custReleaseDetails.htm"
uid ="releaseDetails"  class="allTableStyle1"  >
                                          
<display:column property="column_Con" title=" " />
                        
 <core:forEach var="cl" items="${relDetails}" >

   <display:column property="${key}" title="${value}" />
                          
 </core:forEach>
                                        
</display:table>




Code snippet in the Controller class :-

        List<CustReleaseDetailsForm> lstFormcustDetails =
new ArrayList<CustReleaseDetailsForm>();

List set1 = new java.util.ArrayList();

HashMap map = new HashMap();
        
CustReleaseDetailsForm custDetForm = new CustReleaseDetailsForm();
                                        
                if(i==0)
                {
        Date a = new Date(2009,01,01);
         custDetForm.setQty1(50);
                custDetForm.setQty2(50);
                custDetForm.setQty3(50);
                custDetForm.setQty4(50);
                                lstFormcustDetails.add(custDetForm);
                
    map.put(a, lstFormcustDetails);
                
set1.add(map);
model.put("relDetails", set1);






______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249318

------------------------------------------------------------------------------
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to