This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes logic:iterate without Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic:iterate without Collection" Watch "logic:iterate without Collection" New topic

logic:iterate without Collection

Ganesh Ramani

Joined: Aug 07, 2007
Posts: 20

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.

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.

Consultant, Sima Solutions
Lakshmanan Narayanan

Joined: Aug 21, 2007
Posts: 3
I think you cannot use logic:iterage tag in this senario,
whereas you an make use of c:forEach tag.

I agree. Here's the link:
subject: logic:iterate without Collection