Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7465573 By: uday36
Thanks for ur Reply Chikkubhai... But I am still not clear with the HashMap syntax to be used... public Map<String, Object> referenceData(HttpServletRequest request) { Map<String, Object> model = new HashMap<String, Object>(); List<CustReleaseDetailsForm> lstFormcustDetails = new ArrayList<CustReleaseDetailsForm>(); List <CustReleaseDetailsForm>lst_collist = new ArrayList<CustReleaseDetailsForm>(); HashMap map = new HashMap(); for(int i = 0; i < 6; i++) { CustReleaseDetailsForm custDetForm = new CustReleaseDetailsForm(); if(i==0) { custDetForm.setColumn_Con(""); Date a = new Date(2009,01,01); custDetForm.setDemandQty(50); custDetForm.setCommitQty(50); custDetForm.setMajStock(-10); custDetForm.setMinStock(10); custDetForm.setOverStock(50); lstFormcustDetails.add(custDetForm); map.put(a, lstFormcustDetails); } if(i==1) { custDetForm.setColumn_Con(""); Date b = new Date(2009,02,01); custDetForm.setDemandQty(50); custDetForm.setCommitQty(50); custDetForm.setMajStock(-10); custDetForm.setMinStock(10); custDetForm.setOverStock(50); lstFormcustDetails.add(custDetForm); map.put(b, lstFormcustDetails); //Note currently I am hardcoding the values to be displayed...But in actual these values will be coming from the database. } Now I want to get these values displayed in tabular format as below :- 01/01/2009 01/02/2009 And so on.... DemandQty 50 50 CommitQty 50 50 MajStock -10 -10 MinStock 10 10 OverStock 50 50 .JSP File Code Snippet:- <display:table name="relDetails" id="items" requestURI ="custIt.htm" class="allTableStyle1" > <display:column property="column_Con" title=" " /> <core:forEach var="cl" items="${relDetails}" > <display:column property="${c1}" title="${c1}/> </core:forEach> </display:table> I am confused with what should be the property and title attriburte of display:column tag.... ______________________________________________________________________ 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