YouTip LogoYouTip

Jstl Function Trim

# fn:trim() Function [![Image 3: JSP Standard Tag Library](#)JSP Standard Tag Library](#) The fn:trim() function removes whitespace from both ends of a string. ### Syntax The syntax for the fn:trim() function is as follows: ${fn:trim()} ### Example The following example demonstrates the functionality of this function: Using JSTL Functions

string1 length : ${fn:length(string1)}

string2 length : ${fn:length(string2)}

String is : ${string2}

The output is as follows: string1 length : 25 string2 length : 16String is : I am from tutorial * * JSP Standard Tag Library](#) [](#)(#) (#)[](#)
← Bootstrap Ui EditorJstl Function Touppercase β†’