• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

nested loop using logic:iterate tag

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Experts,

I am working on a struts based project, I am facing some problems displaying data on jsp .
My problem is like this :

I have a ActionForm with a list :


and i am able to iterate over it using logic:iterate and display the contents on the jsp by doing this


This works all very well but the problem is that the list "subjectAndGradeList" contains another list


"RemarksListDTO" class contains some properties and there getter and setters.

And i want to display the values of "remarkList" also on the jsp.

ie. some thing like this

Obviously this does not work but i want it achieve something like this .

What to put in side the nested logic:iterate tag i have no clue

In my Action Class i can iterate over the "remarkList" (for test purposes ).

But i need these values to be displayed on the jsp also .

I tried and tried and am still trying But no use .

Please help me solve this problem i know this is a basic problem but i am stuck .

Thank you all in advance.

Regards.







 
reply
    Bookmark Topic Watch Topic
  • New Topic