wood burning stoves 2.0*
The moose likes JSP and the fly likes JSTL - Collection Size gives error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL - Collection Size gives error" Watch "JSTL - Collection Size gives error" New topic

JSTL - Collection Size gives error

Hari Maha

Joined: Oct 13, 2004
Posts: 11
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é

Joined: Nov 24, 2005
Posts: 14687

How did you declare the fn prefix ?

[My Blog]
All roads lead to JavaRanch
Hari Maha

Joined: Oct 13, 2004
Posts: 11
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: JSTL - Collection Size gives error
Similar Threads
JSTL question - forEach loop
Configure EL function in tag library descriptor?
Caught an exception while evaluating expression '....size()==0' against value stack
Need help with JSTL: setting end attribute dynamically of "substring" tag
Problem with c:forEach