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()
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 …
JPA Entity Primary Key Using @Id and @IdClass
At this tutorial we’ve explained the concept of entity identification. Entity identification is the process in which the Java Persistence Implementation identify an entity uniquely from set of entities that belong to the same type on a memory level or a database level. Each entity that located in the persistence context must has a unique …
Log4j 2 + Spring MVC Integration
Log4j 2 provides simple solution to the integration of logging to the web applications. If you run servlet 3.0 web application, then there is no need for any configurations. The log4j context is initialized at the time of loading the web application. If you run the servlet 2.5 web application, there is configuration parameters to …
JPA Annotations – @Temporal
@Temporal annotation in JPA implementation can only be used with the fields and property get methods. Also, this annotation can be specified for the persistent fields or properties java.util.Data or java.util.Calendar. This annotation is available since the release of JPA 1.0. @Temporal solves the one of the major issue of converting the date and time …
JSTL Function fn:startsWith()
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()
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()
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()> …