|
If it's just for outputting "static" HTML with N repeats, use <% for%>.
Otherwise, from the perspective of a normal programmer's thinking, you most likely (if not 100%) are traversing a "collection". This collection may be an array, it may be java.util.Collection, or it may be java.util.Map or anything that implements java.util.Iterable. And all the types listed above can be handled by logic: iterate, except that it needs to be located in PageContext, that is, page, request, session, etc. |
|