YouTip LogoYouTip

Jstl Function Endswith

# fn:endsWith() Function [![Image 3: JSP Standard Tag Library](#)JSP Standard Tag Library](#) The fn:endsWith() function is used to determine whether a string ends with a specified suffix. ### Syntax The syntax for the fn:endsWith() function is as follows: <c:if test="${fn:endsWith(, )}"> ... ### Example The following example demonstrates the functionality of this function: Using JSTL Functions

The string ends with 123

The string ends with tutorial

The output is as follows: The string ends with 123 * * JSP Standard Tag Library](#)

← Jstl Function EscapexmlJstl Function Containsignoreca β†’