Home » JSTL fn:substring() Function

JSTL fn:substring() Function

by Online Tutorials Library

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

You may also like