File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Logic:Iterate

 
Ggaurav Gupta
Greenhorn
Posts: 9
  • 0
  • 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: 10967
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • 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
  • 0
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic