What are implicit Objects available to the JSP Page?

By: Karthik Viewed: 169 times  Printer Friendly Format    


Answer: Implicit objects are the objects available to the JSP page. These objects are created by Web container and contain information related to a particular request, page, or application. The JSP implicit objects are:

Variable

Class

Description

application

javax.servlet.ServletContext

The context for the JSP page's servlet and any Web components contained in the same application.

config

javax.servlet.ServletConfig

Initialization information for the JSP page's servlet.

exception

java.lang.Throwable

Accessible only from an error page.

out

javax.servlet.jsp.JspWriter

The output stream.

page

java.lang.Object

The instance of the JSP page's servlet processing the current request. Not typically used by JSP page authors.

pageContext

javax.servlet.jsp.PageContext

The context for the JSP page. Provides a single API to manage the various scoped attributes.

request

Subtype of javax.servlet.ServletRequest

The request triggering the execution of the JSP page.

response

Subtype of javax.servlet.ServletResponse

The response to be returned to the client. Not typically used by JSP page authors.

session

javax.servlet.http.HttpSession

The session object for the client.



Most Viewed Articles (in Interview )

What is the difference between JTS and JTA?

Interview Question: What is Action Class?

Interview Question: What is the difference between EAR, JAR and WAR file?

What is Deployment Descriptor?

Explain garbage collection?

What is the difference between jsp:include page and @ include file?

Interview Question: What about JSTL and JavaServer Faces ?

Interview Question: Why are some of the class and element names counter-intuitive?

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

Tell me something about J2EE component?

What are the services provided by a container?

What is Collection API?

What is similarities/difference between an Abstract class and Interface?

What do you understand by JSP Actions?

Latest Articles (in Interview)

Comment on this tutorial