If you’ve a good experience in the Java Persistence API, you can configure the JPA to generates the required schema. These are not part of the JPA implementation prior to the JPA 2.1 specification. These are considered as the extensions for the JPA provider. However, this has been standardized from the JPA 2.1 release. JPA …
Java Exception Handling
Let’s look at Java exception handling. It is one of the most useful topics and can be confusing at times. But Java exceptions are pretty simple to understand and here we will try to cover most of Java exception handling. Some Questions: Why do we need exception handling in Java? Differences between checked and unchecked …
HTML5 Events
Event is an object that describes a state change in a source or is an action or occurrence detected by the program. It can be generated by anyone interacting with the elements in a GUI. Some of the activities that cause events such as clicking button, entering character from the keyboard and many more. This …
Java Strings, StringBuilder, StringBuffer
Lets learn more about Strings in Java today. Java Strings are one of the most commonly used and hence we will explore about it in detail. Some of the key differences in Java Strings over other languages are: String is an object in Java and is part of the java.lang package. To invoke objects of …
JSTL Function fn:trim()
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()
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()
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 …