JSP response implicit Object

In this tutorial you will learn about the JSP response implicit Object and its application with practical example.

JSP response implicit Object

This is the instance of HttpServletResponse object and created by the web container for each jsp request.

Table Of Contents

A response contain data passed between a server and the client and All Responses implement the ServletResponse interface. This interface defines methods that allow you to:

# Retrieve an output stream to use and send data to the client.
# Indicate the content type(for example text/html).
# Indicate whether to buffer output with the setBufferSize(int) method.
# Set localization information such as locale and character encoding.

Example:

//Index.jsp

Output

4

Welcome.jsp: This will call when you will click on “Click” Button.

Output:

5

In this tutorial we have learn about the JSP response implicit Object and its application with practical example. I hope you will like this tutorial.