• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL - Collection Size gives error  RSS feed

 
Hari Maha
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get the size of a collection, i used function tld.



But I am getting the following error:

javax.servlet.ServletException: The class org.apache.taglibs.standard.functions.Functions specified in TLD for the function fn:length cannot be found:
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you declare the fn prefix ?
 
Hari Maha
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry , rectified it. I had mistakenly put JSTL 1.0.2 standard and jstl jars which didn't have functions, when replaced with JSTL 1.1, it worked

Thank you
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!