YouTip LogoYouTip

Jstl Function Startswith

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

The string starts with Google


The string starts with Tutorial

The output is as follows: The string starts with Tutorial * * JSP Standard Tag Library](#)
← Jstl Function SubstringJstl Function Split β†’