• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL collections

 
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: 65529
105
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!