• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting size of collection through EL

 
Sudhakar Sharma
Ranch Hand
Posts: 71
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

I have an ArrayList, which is set by the servlet as a request attribute and now in the jsp file i want to print its size through EL.
is it possible? please help.

thanks in advance

 
Ankit Garg
Sheriff
Posts: 9591
34
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Directly you can't do it, the size is not a JavaBean style property in ArrayList. You'll have to create an EL function. Read this tutorial to learn how to do that...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!