aspose file tools
The moose likes Struts and the fly likes Struts Logic:Iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Logic:Iterate" Watch "Struts Logic:Iterate" New topic

Struts Logic:Iterate

Ggaurav Gupta

Joined: Mar 26, 2010
Posts: 9
Hi i want to display 5 fields to the users ........

a collection is dynamically generated from database .........

suppose a collection cantains 2 elements then logic:iterate displays 2 fields .......... but i want 5 fields 2 prepopulated and 3 blank fields .......

how can i do this .......... please help
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10732


This is the Swing forum. Your question is related to Struts.
Moving thread.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
David Newton

Joined: Sep 29, 2008
Posts: 12617

Either add empty objects to the collection, or keep track of how many blank fields you need to add and add them separately.

And fix your period (".") key, it seems to be stuck.
wood burning stoves
subject: Struts Logic:Iterate
It's not a secret anymore!