wood burning stoves 2.0*
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
Author

blank form with logic:iterate

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hello
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: blank form with logic:iterate