Servlet Redirect HTTP Request Example

This tutorial shows you Servlet Redirect HTTP Request Example that demonstrate an HTTP Request from one servlet to another servlet. The sendRedirect() method of the HttpServletResponse sends a temporary redirect response to the client using the specified redirect location URL and clears the buffer. This is ninth post of series of Java Servlet Tutorial. This … Read more

Java Servlet Forward HTTP Request Example

Today, we show you Java Servlet Forward HTTP Request Example that demo how to forward an HTTP Request from a servlet to another servlet. In order to do a forward action you should use the forward method of the RequestDispatcher. This method will forward a request from a servlet to another resrouce. The resource can … Read more

Java Servlet Listener-ServletContextListener example

This tutorial shows you Java Servlet Listener-ServletContextListener example then you know how can listen to the startup of web application with ServletContextListener. You should know that ServletContextListener allows you to initialize application when it is deployed and free resources when the application is destroyed. This is seventh post of series of Java Servlet Tutorial. This … Read more

Servlet Request Session Application Scope Attributes

In this tutorial we will introduce about Servlet Request Session Application Scope Attributes. There are three different scopes: request scope, session scope and application scope. Attributes can be objects and are used to pass data between two requests. It is essential to pass data between different servlets in a web application. This is sixth post … Read more

Servlet HTTP Request Parameters Example

In the previous post, you are similar to the Servlet Context Parameter Example. This tutorial will show you how to build servlet HTTP request parameters example. The HTTP request parameters are passed along with the request. The HTTP request parameters could be passed by two ways. One way is sent as part of the URL … Read more

Please share it if you found this useful
Hide Buttons