The following is a list of the methods that are in Jstl and their descriptions
Function Name Function Description Use example
Fn:contains to determine if a string contains another string <c:if test= "${fn:contains (name, SearchString)}" >
Fn:containsignorecase determines whether a string contains another string (case-insensitive) <c:if test= "${fn:containsignorecase (name, SearchString)}" >
Fn:endswith determines whether the string ends with a different string <c:if test= "${fn:endswith (filename,". txt ")}" >
Fn:escapexml convert some characters into XML representations, such as the < character should be converted to < ${fn:escapexml (Param:info)}
The position of the fn:indexof substring in the parent string ${fn:indexof (name, "-")}
Fn:join union the data in the array into a new string and uses the specified character format to open ${fn:join (array, ";")}
Fn:length gets the length of the string, or the size of the array ${fn:length (shoppingcart.products)}
Fn:replace replaces the character specified in the string ${fn:replace (text, "-", "& #149;")}
Fn:split the string according to the specified word segmentation ${fn:split (customernames, ";")}
Fn:startswith determines whether a string starts <c:if test= "${fn:startswith (product.id," 100-") with a substring" >
Fn:substring Get substring ${fn:substring (zip, 6,-1)}
Fn:substringafter gets the substring starting at the location of a character
${fn:substringafter (Zip, "-")}
Fn:substringbefore Gets the substring ${fn:substringbefore (zip, "-") from the beginning to the location of a character}
Fn:tolowercase converted to lowercase ${fn.tolowercase (product.name)}
Fn:touppercase to uppercase characters ${FN. Uppercase (Product.name)}
Fn:trim Remove the space before and after the string ${fn.trim (name)}
Common JSTL functions