原文: https://beginnersbook.com/2013/12/fn-tolowercase-jstl-function/
此函数将字符串转换为小写字符串。输入字符串中的任何大写字符都将替换为相应的小写字符。
语法
String fn:toLowerCase(String input)
返回类型:String;参数:String类型的单个参数。在将输入字符串转换为小写后返回一个String。
fn:toLowerCase()示例
在这个例子中,我们将这个函数应用于两个字符串 - 一个是字符串变量,另一个是硬编码字符串,作为函数的参数给出。正如您在输出中看到的那样,它已将变量的值和硬编码的字符串值替换为小写。在此代码之后提供输出的屏幕截图。
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %><html><head><title>fn:toLowerCase() example</title></head><body><c:set var="message" value="This is An Example of JSTL Function"/>${fn:toLowerCase(message)}${fn:toLowerCase("HELLO")}</body></html>
输出:

