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 …
Java EE
JSTL Function fn:join()
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()> …
EclipseLink / JPA Annotations – @Embeddable, @Embedded and @EmbeddedId
We’ve been providing several examples so far, most of the examples are being provided weren’t use complex persistent entity states; we are using a primitive data types such (int, String, BigDecimal, Date and etc ..). But what’s happened if you we’ve created an entity whose persistent states are other types (classes). No doubt that it …
JSTL Function fn:indexOf()
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 …
JSTL Function fn:escapeXml()
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 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 …