• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to iterate through multiple indexed properties in a form bean at the same time?

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all!
i am facing problem to print data (inside indexed properties) on page my problem is .....
i want to print html table in my page where it's rows will be populted by indexed properties in my formbean

customer # 1
_______________________________________________
|Bank Name|Loan Amount|Outstanding amount|
|----------------------------------------------
|ABC 2000$ 200$
|-----------------------------------------
|HBL 1000$ 100$
.
.
.
.
since i have arrays (String arrays) for all those columns in table say bankNameArray,loanAmountArray,outstandingLoanArray in form bean and i need to iterate them all for displaying a single reord one by one in that html table.....i am lost what to do here as using html:iterate tag i can only iterate through one indexed property at one time.....
Can anybody help me in this regard a sample code snipet will help me a lot....

Thanks in advance
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I recommend creating a LoanForm class that represents a single row in the table. That way you can iterate over a collection of LoanForm objects and grab all of its values.
 
reply
    Bookmark Topic Watch Topic
  • New Topic