• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL if tag restriction for Enumeration and Iterator

 
vijayakumar vivekanandan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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."
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • 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--
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic