Eclipse Out Of Memory Error

Eclipse Out Of Memory Error explains about How To Solve Eclipse Out Of Memory Error

For correcting the memory problem you need to change the VM arguments into your JRE

You need to navigate to Eclipse -> Window -> Preference -> Java -> Installed JREs

Now click the edit button and change the values of Default VM (Virtual Machine)  Arguments.

Please see the screen shot below

You can also see an example of Increasing Heap Size in Eclipse in order to avoiding OutOfMemoryError

Hibernate Query Tutorial

Hibernate Query Tutorial explains step by step details of setting / configuring Hibernate Query with Eclipse

Hibernate is popular open source ORM (Object Relation Mapping) tool for Java platform, for mapping an entity to a traditional relational database like Oracle, MySQL etc

By using Hibernate, we can done database operations like Create, Read, Update & Delete etc, with very little code.

On this Tutorial, You can see Read, Update & Delete operations by using Hibernate Query Language

You can also view some examples of a) Hibernate Tutorial b) Hibernate Annotations Tutorial

fn:toLowerCase() JSTL Function

fn:toLowerCase() JSTL Function Example explains about How To Use fn:toLowerCase() JSTL Function.

Consider an example where you need to convert a string into small / lowercase using JSTL function

fn:toLowerCase() JSTL function will Convert all the characters of a string into lowercase.

java.lang.String toLowerCase(java.lang.String)

You can see the below example, which is demonstrating fn:toLowerCase() JSTL Function

Servlet Listener Example

Servlet Listener Example explains step by step details of implementing a Servlet Listener

Servlet Listener is helpful for listening various events inside a servlet container, such as add an attribute in a session, create a session, to manipulate these events you need to configure listener class in web.xml

Please see the following Java Servlet Listener Example

HttpSessionAttributeListener Example
HttpSessionBindingListener Example
HttpSessionListener Example
ServletContextAttributeListener Example
ServletContextListener Example

HttpSessionBindingListener Example

HttpSessionBindingListener Example explains about how to use HttpSessionBindingListener in a web application.

The listener HttpSessionBindingListener is an interface extending from base interface java.util.EventListener interface. This interface will notify an object when it is bound to or unbound from a session.

javax.servlet.http.HttpSessionBindingListener interface has following two methods:

valueBound(HttpSessionBindingEvent event).
valueUnBound(HttpSessionBindingEvent event).

You can see the below example, which is demonstrating HttpSessionBindingListener Example

Spring Jdbc Template

Spring Jdbc Template Example explains step by step details of configuring Spring Jdbc Template

The Spring Framework is a free and open source framework using for the development of java enterprise applications

Spring framework consists of several different modules including Aspect Oriented Programming, Inversion Control, Model View Controller, Data Access, Transaction Management, Batch Processing, Remote Access & Spring JDBC Template will really ease the development effort of coding team.

SpringJdbcTemplate is a module available in spring core framework, which will help you to persist entities by using very little code, it simplifies the creation of database connection & closing connection etc.

In this example, we are injecting the DataSource by setter injection, if you need you can configure using spring configuration.

fn:substring() JSTL Function

fn:substring() JSTL Function Example explains about How To Use fn:substring() JSTL Function.

Consider an example where you need to find a substring.

fn:substring() JSTL function will returns a substring of a string that we specified. For this you need to specify the indexes for extracting the substring as below format

java.lang.String substring(java.lang.String, int, int)

You can see the below example, which is demonstrating fn:trim() JSTL Function

fn:endsWith() JSTL Function

fn:endsWith() JSTL Function Example explains about How To Use fn:endsWith() JSTL Function.

Consider an example where you need to check whether a string ends with a specified suffix.

fn:endsWith() function will tests whether a particular string ends with the specified suffix.

boolean endsWith(java.lang.String, java.lang.String)

You can see the below example, which is demonstrating fn:endsWith() JSTL Function