This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL collections  RSS feed

 
Stu Johns
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a java.util.Collection<MyObject> of objects on a request, I can iterate over these using c:forEach in jstl, no problem :thumb:
Is it possible to declare a new collection and add some of these objects to it using jstl, (if it is what is the syntax?) or should i be doing this in a servlet before even reaching the jsp?.

thanks

Stu.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66188
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Stu Johns:
or should i be doing this in a servlet before even reaching the jsp?.
Yes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!