File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!