How to Install Gradle Plugin in Eclipse

The best way is to open Install New Software ... and a site located at http://dist.springsource.com/release/TOOLS/update/e4.4. And then you choose Core / Eclipse Integration for Gradle -> Gradle IDE from the site.

I would not recommend you to use Eclipse Marketplace to search and install Gradle plugin. If your Eclipse version is old, for example Luna, it's highly likely that many of the plugins will be unavailable. They all take quite a while to download and at the end of the installation process you may get an error.

I would not recommend you to use Eclipse Marketplace to search and install Gradle plugin. If your Eclipse version is old, for example Luna, it's highly .

Adding HTTP Headers To Requests in Filters and Servlets

The aim of this tutorial is to demonstrate how you can add Headers to the ServletRequest and HttpServletRequest objects in either servlets or filters. This requires subclassing the HttpServletRequestWrapper class.

First let us have a look at subclassing the HttpServletRequestWrapper class. As you can see we have overridden getHeaderNames and getHeader to include our custom headers. These custom header are added through the addHeader function which is a new function. Our custom headers are stored in a hashmap.

First let us have a look at subclassing the HttpServletRequestWrapper class. As you can see we have overridden getHeaderNames and getHeader to include our custom headers. These custom header are .

Error Unresolved compilation problems method replace(char, char) is not applicable

Invoking Java from Clojure throws the following error

The running JRE is 1.8, so there is no way that the replace method of String refuse to accept String arguments, because the replace(CharSequence target, CharSequence replacement) is provided since Java 1.5.

Java HttpURLConnection Send POST request with Cookie

Send POST request usually involves filling HTML form and submitting through your browser.

To automate this action you may need to do it in a script.

Developing a simple Hello World servlet

In this tutorial you will learn how to develop a simple servlet. Here we start with some step by step to develop servlet.

• Create the web application directory structure and you can create the src folder any where you want.

How to change local Maven repository location

When you use Maven as build tool for your projects, Maven maintains a local repository for jar files, plugins and other files which has been used in your projects, Maven refers the jar file and other files for project while building.

You can see the path of maven repository inside user directory of window, Maven creates a folder named ‘.m2′, inside ‘.m2′ you will find one more folder named as ‘repository’, You can find all the jar files inside this repository folder which are used for your projects.

You can see the path of maven repository inside user directory of window, Maven creates a folder named ‘..

How to create a daemon thread in java

A daemon thread is simply a background thread that is subordinate to the thread that creates it, so when the thread that created the daemon thread ends, the daemon thread dies with it.

A thread that is not a daemon thread is called a user thread. We cannot create a thread directly as daemon, first we need to create a user thread then we can convert user defined thread as daemon thread.

A thread that is not a daemon thread is called a user thread. We cannot create a thread directly as daemon, first we need to create a .

How to get current executing thread in java

In this tutorial you will learn how to get the current executing thread in java. To get the currently executing thread, you can use the static currentThread() method of the Thread class. This method returns a reference of the currently executing thread object.

Below is the example code of getting current executing thread in java

How to join threads in Java Example

If you want a thread to work until another thread dies, you can join the thread onto the end of the another thread using the join() method. For example, if you want thread two only work until thread one completes its work, then you want thread two to join thread one.

How to use JDBC ResultSetMetaData

In this tutorial you will learn about the ResultSetMetaData object of JDBC, and the name suggest this object gives you comprehensive information about the ResultSet retrieved by statement.

The interface ResultSetMetaData enables you to determine the attributes like number of columns, names, and data types for a result set.

1 2 ... 27 Next Page