Javatpoint Logo
Javatpoint Logo

JSTL fn:length() Function

The fn:length() function returns the number of characters inside a string, or the number of items in a collection. It is used for calculating the length of string and to find out the number of elements in a collection.

The syntax used for including the fn:length() function is:

It returns the length of object. The return type of this function is int .

Let's see the simple example to understand the functionality of fn:length() function:


JSTL Function Tags14

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA