• Post Reply Bookmark Topic Watch Topic
  • New Topic

Possible to create a forEach loop without needing servlet intervention?  RSS feed

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using JSTL 1.2. Is it possible to create a forEach loop that iterates exactly twice without creating a bean in the servlet (e.g. an ArrayList with Integers zero and one)? Thanks, - Dave



 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37253
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave,
See this count to 10 example. It looks like it does what you are asking for.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you ask? (possible red flag)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!