JSTL fn:toUpperCase() function

The JSTL fn:toUpperCase() function returns the input string after converting the all characters of the string to upper case.

Syntax:

String toUpperCase(String inputString)

Example:

test.jsp

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


	
		fn:toUpperCase JSTL function example
	
	
		
		Given String: 


String after change case (upper):

web.xml


	
  
          test.jsp
  	


Output:

jsp example 65
 
Download this example.
 
Next Topic: JSTL fn:trim() function with example.
Previous Topic: JSTL fn:toLowerCase() function with example.