Home » Enterprise Java » servlet (page 5)

servlet

Get Request Parameter in Servlet

With this tutorial we shall show you how to get request parameter in a Java Servlet. This the most basic step you have to consider when developing a Servelt application because HTTP is based mostly on parameters exchange. You will find this example particularly useful when you want to get the value of known parameter. Basically in order to get ...

Read More »

Get all Request Headers in Servlet

This is an example on how to get all the Request Headers in a Servlet. This is to make it easy for the programmer to parse an HTTP request object and decide on the response you will provide. In short in order to get all request headers in Servlet, on should follow these steps: Create a handleRequest method so you ...

Read More »

Get Request Header in Servlet

This is an example on how to get Request Headers in a Servlet. This is to make it easy for the programmer to parse an HTTP request object and decide on the response you will provide. You will find this example useful if you want to get a known header. In short in order to get request headers in a ...

Read More »

Sample Java Servlet

In this example we are going to see how to create a simple Java Servlet. As Oracle states in it’s site: Servlets are the Java platform technology of choice for extending and enhancing Web servers. Servlets provide a component-based, platform-independent method for building Web-based applications, without the performance limitations of CGI programs. And unlike proprietary server extension mechanisms (such as ...

Read More »