• Post Reply Bookmark Topic Watch Topic
  • New Topic

Get collection size

 
Otilia Marcu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any ideea about how to get collections size in JSTL?

<cut value="${map.numberOfItems}"/> seems not dooing good work ....


What is the right way?


chamade76
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If using JSP 2.0 and JSTL 1,1:

${fn:length(whatever)}
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!