Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

JSTL if tag restriction for Enumeration and Iterator

 
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."
 
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--
 
Is this the real life? Is this just fantasy? Is this a tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic