Javatpoint Logo
Javatpoint Logo

JSTL fn:substring() Function

The fn:substring() function returns the subset of a string. It is used to return the substring of given input string according to specified start and end position.

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

  • start: It is starting position of substring
  • end: It is end position of substring
  • inputstring: It is string from which a substring needed to be taken
  • Return type of the function: String

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

Output:

JSTL Function Tags11



Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA