• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logic:iterate without Collection

 
Ganesh Ramani
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to create an array-of-elements (textboxes) for which i want to include the text tag in an iterator which will produce an array-of-textboxes in my form.

Is there any optimal way to do this? How logic:iterate can be used here without a collection attribute? Please help.

Ganesh
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The logic:iterate tag will iterate over either an array or a collection. It recognizes which one is being used and makes the appropriate Java calls.
 
Lakshmanan Narayanan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you cannot use logic:iterage tag in this senario,
whereas you an make use of c:forEach tag.

njoy.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic