This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

display tag that contains list which inturn contain the list

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends.
I need one requirement.I have to display the list using the display tag.With a single list its working fine.But my list of objects, inturn each object consists another list.I have to display the last list.
Ex:- ClassRoom is my class.
ClassRoom contains studentList that contains Student as object.
Each Student Object contains subjectsMarksList.
Now I have to display subjectsMarksList as follows.
sub1 sub2 sub3
---- ---- -----
50 20 30
20 40 40
---- ---- -----
Total
This is for all students I have to do.I have to represents only subjects and marks.

Could you please help me how can I do that?
Thanks in advance.
 
suresh sai
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Friends.,
I found out one solution that is almost similar to what I need,using in combination with <logic:iterate>.But the headers are printing two times.

Here I am showing the snap shot of the code.
<logic:iterate id="student" name="classForm" property="studentList">
<display:table name="student.subjectsMarksList">
<display:column property="sub1" />
................................
</display:table>
</logic:iterate>
It is printing all the values but header is repeating as follows.

sub1 sub2 sub3
---- ---- -----
50 20 30
---- ---- -----
sub1 sub2 sub3
---- ---- ----
20 40 40
---- ---- -----
Please help me to solve it.
Thanks in advance.
 
What's brown and sticky? ... a stick. Or a tiny ad.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic