fn:toLowerCase tag of Function Tag Library

What is "fn:toLowerCase" tag of Function Tag Library?

Explanation

"fn:toLowerCase" is a function of JSP Standard Tag Library(JSTL). This function is used to convert a string to lowercase.

Syntax:


String:fn:toLowerCase(string)

In the above syntax the "string" is of Data type "String".

Example :


<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"
prefix="fn" %>
<p><b>String in Lowercase::</b></p>
${fn:toLowerCase('APPLE')}

Result


String in Lowercase::
apple

In the above example we have coverted the string "APPLE" into lowercase "apple".

Ask Questions

Ask Question