This Function Checks that the Placed String Contains the Sub string or Not.

This Program will show the execution of <fn: contains> function that will bring the output in True or False mode if it will find the substring in string will output ‘TRUE’ otherwise ‘FALSE’. 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.


<%@ taglib uri="" prefix="c" %>
<%@ taglib uri="" prefix="fn" %>
<title>&lt;fn:Contains&gt; In JSTL</title>
<center><br /><strong><p><c:out value="${fn:contains('JavaServerPages', 'ver')}"></c:out>

                    JSTL fn:contains() Function

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.