Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Logic:Iterate

 
Ggaurav Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11341
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CarefullyChooseOneForum

This is the Swing forum. Your question is related to Struts.
Moving thread.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic