Java jstl function tolowercase

The fn:toLowerCase function is a JSTL function that converts the characters in a string to lowercase. The function takes a single argument, which is the input string.

The syntax of the fn:toLowerCase function is as follows:

${fn:toLowerCase(string)}
Sour‮ec‬:www.theitroad.com

where string is the input string.

For example, the following expression converts the string "Hello World" to all lowercase characters:

${fn:toLowerCase("Hello World")}

This expression returns the string "hello world".

You can also use variables instead of literals for the argument. For example, if you have a variable text containing a string, you can convert the string to lowercase using the following expression:

${fn:toLowerCase(text)}

This expression returns the string stored in the text variable with all characters converted to lowercase.

Note that the fn tag library must be imported at the beginning of the JSP page using the following tag:

<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>