Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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
Pie
Posts: 64633
86
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)}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic