Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes blank form with logic:iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "blank form with logic:iterate" Watch "blank form with logic:iterate" New topic

blank form with logic:iterate

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
I need to create a blank form with Struts1.
Conceptually I can create a blankLine object that is composed of and ArrayList of field objects as simple as new String() or LabelValueBean. Then populate an ArrayList, blankForm, with n number of blankLine objects. I can logic:iterate over the blankForm which should expose a single blankLine object at a time. However I cant figure out how to logic:iterate for each field and the necessary form members to capture the fields in the the line and the lines in the form. I dont know if I need to use indexed attribute. Can someone instruct me on the details to success with an implementation?
I agree. Here's the link:
subject: blank form with logic:iterate
It's not a secret anymore!