JSTL Function fn:replace()

java-ee-thumbnail

<fn:replace()> is a string function. The function replace is used to replace the entered string with specified string. The <fn:replace()> function replaces the existing string with another string. Syntax of JSTL Function <fn:replace()> Example of JSTL Function <fn:replace()> Following example demonstrate the working of <fn:replace()> function. In this example we replace the string Welcome to […]

JSTL Function fn:trim()

java-ee-thumbnail

Function <fn: trim ()> is used to remove leading and trailing white spaces, tabs from the start and end of the string. The function returns the string after removing white spaces from both points of the input string. Syntax Of <fn: trim ()> Tag Example Steps for Execution Save the file as trimExample.jsp in eclipse […]

JSTL Function fn:toUpperCase()

java-ee-thumbnail

The <fn: toUpperCase> is function of JSTL which is used to returns all the characters of string to upper case. It converts input string to an upper case string. The string which needs to be changed to upper case is passed as argument and converted string is being returned by the function. Syntax Of <fn: […]

JSTL Function fn:toLowerCase()

java-ee-thumbnail

The <fn: toLowerCase> is function of JSTL which is used to returns all the characters of string to lower case. It converts input string to a lower case string. The string which needs to be changed to lower case is passed as argument and converted string is being returned by the function. Syntax Of <fn: […]

JSTL Function fn:length()

java-ee-thumbnail

The function <fn:length()> is the string function. This function used to find out the length of the entered string. This function displays the number of characters entered in the specified string. Syntax of Function <fn:length()> Example of Function <fn:length()> Steps for Execution Save this file as example.jsp in your eclipse IDE. Now select this jsp […]

JSTL Function fn:substring()

java-ee-thumbnail

The <fn:substring()> is the string function of JSP Standard Tag Library(JSTL). This function is used to extract a string specified using the two index values that is start and end value. This function returns a substring with a specified position. Syntax of JSTL Function <fn:substring()> Example Details of the Code <c:set var=”str” value=”welcome to javabeat […]

JSTL Function fn:startsWith()

java-ee-thumbnail

The function <fn:startsWith()> is a string function of JSTL. This function is used to check the input string starts with the given specified character or prefix. It returns true if it contains specified character otherwise returns false. Syntax of JSTL Function <fn:startsWith()> Example of JSTL Function <fn:startsWith()> Details of the Code ${fn:startsWith(“JavaBeat”,’J’)} tag is used […]

JSTL Function fn:split()

java-ee-thumbnail

The JSTL Function <fn:split()> is the string function. This function is used to split or separate the string with specified delimiter(separator). JSTL Function <fn:split()> helps to split or separate a specified string into an array of substring. Syntax of JSTL Function <fn:split()> Example of JSTL Function <fn:split()> Details of the Code <c:set var=”name”> tag is […]

JSTL Function fn:join()

java-ee-thumbnail

The <fn:join()> is a string function of JSP Standard tag Library(JSTL).This function is used for joining all the elements of an array into a string with a specified operator and returns the output. This function returns string with all the elements of an array separated by a separator. Syntax of <fn:join()> function Example of <fn:join()> […]

JSTL Function fn:indexOf()

java-ee-thumbnail

The <fn:indexOf()> is a string function of JSTL. This function returns the index within a string of a specified substring. This function is used to get the first occurrence of the substring in the given string. This function takes string type as arguments and returns int type. Syntax of <fn:indexOf()> Tag Example Steps for Execution […]