Hi, A messiest solution would be to transform your list of maps into another list of maps that can actually be listed. Let me explain.
You have your data structured like this - vertically : Date1 | Date2 | Date3 | Date4 ______|______|________|_______ Q1.1 | Q2.1 | Q3.1 | Q4.1 Q1.2 | Q2.2 | Q3.2 | Q4.2 Q1.3 | Q2.3 | Q3.3 | Q4.3 What you should do is to create another list of maps that should contain the headers : List<Date> headers = new ArrayList<Date>(); - put here the dates DAte1.....Date4 Create a list of maps that should contain the string representation of the dates as keys. List<Map<String, String>> displayList = new ArrayList<Map<String, String>>(); -- populate this list line by line - iterating over your initial list - or just one list and acces directly the other lists - vertically. -- you should create a map for each line and put each quantity from one line in the map. Map<String, String> map = new HashMap<String, String>(); map.put(Date1.toString(), Q1.1); map.put(Date2.toString(), Q2.1); map.put(Date3.toString(), Q3.1); map.put(Date4.toString(), Q4.1); displayList .add(map); Map<String, String> map = new HashMap<String, String>(); map.put(Date1.toString(), Q1.2); map.put(Date2.toString(), Q2.2); map.put(Date3.toString(), Q3.2); map.put(Date4.toString(), Q4.2); displayList .add(map); Map<String, String> map = new HashMap<String, String>(); map.put(Date1.toString(), Q1.3); map.put(Date2.toString(), Q2.3); map.put(Date3.toString(), Q3.3); map.put(Date4.toString(), Q4.3); displayList .add(map); Map<String, String> map = new HashMap<String, String>(); map.put(Date1.toString(), Q1.4); map.put(Date2.toString(), Q2.4); map.put(Date3.toString(), Q3.4); map.put(Date4.toString(), Q4.4); displayList .add(map); After this transformation - you should do it in a for loop - you should have you data structured horizontally : Date1 Date2 Date3 Date4 ___________________________ Q1.1 Q2.1 Q3.1 Q4.1 ___________________________ Q1.2 Q2.2 Q3.2 Q4.2 ___________________________ Q1.3 Q2.3 Q3.3 Q4.3 Then you should have no problem displaying youe data using displaytag. Hope this helps, Narcis On Wed, Jul 1, 2009 at 8:22 AM, SourceForge.net <nore...@sourceforge.net>wrote: > > Read and respond to this message at: > https://sourceforge.net/forum/message.php?msg_id=7473120 > By: uday36 > > I am still struck with the same problem... > I am awaiting your reply... > Does any one has any suggestions.. > > ______________________________________________________________________ > 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 >
------------------------------------------------------------------------------
_______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user