Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logic:iterate without Collection
 
Similar Threads
dynamic textbox generation in struts...
Iteration in structs
logic iterate tag for Float array
displaying data from arrays with html:text
checkbox iterate