This functions test the case insensitive way substring contained into string or not.
This function filtrates the condition of insensitive case string from substring. This program is a demo to present the working of this function. First we call the syntax of library that allows user to access the JSTL libraries. Then after in body section we declare attributes and required variable that contain the value that is been use to produce the output on the web browser.
fn:containsIgnoreCase.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:containsIgnoreCase()>In JSTL</title>
</head>
<body>
<c:set var=”str1″ value=”Welcome to JSP World”/>
<c:set var=”str2″ value=”jsp” />
<c:if test=”${fn:containsIgnoreCase(str1, str2)}”>
<b><center><p><br/> <c:out value=”String Case Test : str1 contains str2″/>
</c:if>
</body>
</html>