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:

Output:

JSTL Function Tags14




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA