Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

reverse looping in c:foreach  RSS feed

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does not c:foreach JSTL tag support reverse looping ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently it was not deemed necessary by the framers of the specification, which makes it clear that forward-only iteration is allowed.

Why not just construct your collection in the correct order prior to sending it to the page?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
Apparently it was not deemed necessary by the framers of the specification, which makes it clear that forward-only iteration is allowed.

Why not just construct your collection in the correct order prior to sending it to the page?


I agree with you. thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!