This Function converts all the string into Upper case.
This Program is demo of <fn:UpperCase> in JSTL. This function will convert all the string into Uppercase. First in the program we declare syntax of library function. After that we declare the variables that contain the value that is been given in it. After declaring the function as required we close all the custom tags of Html In the last instance.
fn:uppercase.jsp
<%@ 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:toUpperCase> IN JSTL</title>
</head>
<body>
<center><h3>Example of Upper Case Function In JSTL</h3></center>
<c:set var=”str1″ value=”welcome to java server pages world.”/>
<c:set var=”str2″ value=”${fn:toUpperCase(str1)}” />
<p><b><center><p>String After Upper Casing -: ${str2}</p>
</body>
</html>