The <fn:escapeXml()> function is used to escape characters that could be interpreted as XML markup. This is a string function of JSTL. This function also used to replace all characters which have a special meaning in XML. The syntax of<fn:escapeXml()> Tag In this syntax string is of data type “String” it returns a string. Example …
JSTL Tutorials
JSTL Function fn:endsWith()
The <fn:endsWith()> function is used for checking the suffix of a string. This function manipulates the string that ends with specific character or string in JSP. Syntax of <fn:endsWith()> Tag In the syntax string and suffix are data type String. It returns the Boolean value. If the input string is tested successfully then the functions …
JSTL Function fn:containsIgnoreCase()
The <fn:containsIgnoreCase()> function is a string function of JSTL. This function is used to check whether the entered string contains the specified substring irrespective of upper case or lower case. This function returns the boolean value. Syntax of Function <fn:containsIgnoreCase()> Example of Function <fn:containsIgnoreCase()> In the above syntax string and substring are of data type …
JSTL Function fn:contains()
The fn: contains() is a string function of JSP Standard Tag Library (JSTL). It is used to specify whether the string contains specified substring or not. If it contains substring, it returns true or else false. Syntax of Function fn: contains() Example Details of the Code <c:out value=”${fn:contains(myjavabeat,java)}”/> tag is used evaluate result of the …
JSTL XML x:transform Tag
The <x:transform> tag is used to transform an xml data based on XSLT script. This tag used to apply an XSL transformation on an XML document. Syntax of <x:transform> Tag Attributes of <x:transform> Tag Attributes Description var This attribute specifies the variable name to which transformed XML document has to be set. scope This attribute …
JSTL Function fn:substringBefore()
The <fn: substringBefore> is function of JSTL which is used to extract the part of the string before the specified substring. Syntax Of <fn: substringBefore> Tag Example Details of the Code < c:set var=”str” value=”hello world!!!! Welcome to JavaBeat”> tag is used to set variable name and to display result in the output using value …
JSTL Function fn:substringAfter()
The <fn: substringAfter> is function of JSTL which is used to extract the part of the string after the specified substring. Syntax Of <fn: substringAfter> Tag Example Details of the Code < c:set var=”str” value=”hello world..Welcome to JavaBeat”> tag is used to set variable name and to display result in the output using value attribute. …
JSTL Functions
JSTL function tag library contains set of string manipulation functions that can be used with the JSP Expression Language. Syntax of JSTL Functions Tag Library JSTL Function Tags <fn:contains()>: It is used to check whether string contains specified sub string or not. <fn:containsIgnoreCase()>:It returns true if string contains specified substring ,ignores case and also returns …