YouTip LogoYouTip

Jstl Function Substringbefore

# fn:substringBefore() Function [![Image 3: JSP Standard Tag Library](#)JSP Standard Tag Library](#) The fn:substringBefore() function returns the part of a string that precedes a specified substring. ### Syntax The syntax for the fn:substringBefore() function is as follows: ${fn:substringBefore(, )} ### Example The following example demonstrates the functionality of this function: Using JSTL Functions

Generated Substring : ${string2}

The output is as follows: Generated Substring : This is * * JSP Standard Tag Library](#)
← Jstl Function TolowercaseJstl Function Substringafter β†’