• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JSTL if tag restriction for Enumeration and Iterator

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is found in JSTL 1.1 spec section 6.1.1.

I cannot understand the constraints mentioned for Enumeration and Iterator objects.

".... A large number of collection types are supported by <c:forEach>, including all implementations of java.util.Collection (includes List, LinkedList,
ArrayList, Vector, Stack, Set), and java.util.Map
Implementations of java.util.Iterator and java.util.Enumeration are
supported as well but these must be used with caution. Iterator and
Enumeration objects not resettable so they should not be used within more than one iteration tag."
 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Only a guess, but I'd say that maybe the counter only goes 'up'. So if you spun through a list, you wouldn't be able to spin through again on the same page. Any other ideas?

--Dale--
 
You don't like waffles? Well, do you like this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic