A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
logic:iterate without Collection
Joined: Aug 07, 2007
Aug 13, 2007 06:16:00
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.
Joined: Feb 15, 2005
Aug 13, 2007 18:17:00
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.
Joined: Aug 21, 2007
Aug 21, 2007 21:48:00
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
dynamic textbox generation in struts...
Iteration in structs
logic iterate tag for Float array
displaying data from arrays with html:text
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014