This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic:iterate without Collection" Watch "logic:iterate without Collection" New topic
Author

logic:iterate without Collection

Ganesh Ramani
Greenhorn

Joined: Aug 07, 2007
Posts: 20
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

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.


Merrill
Consultant, Sima Solutions
Lakshmanan Narayanan
Greenhorn

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.

njoy.....
 
wood burning stoves
 
subject: logic:iterate without Collection