What are implicit Objects available to the JSP Page?

By: Karthik 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.



Ask a Question



Most Viewed Articles (in Interview )

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

Explain garbage collection?

Interview Question: What is deployment descriptor?

Can Entity Beans have no create() methods?

Explain the new Features of JDBC 2.0 Core API?

What types of comments are available in the JSP?

Interview Question: What is Struts?

Interview Question: How is the MVC design pattern used in Struts framework?

Interview Question: What is ActionForm?

Interview Question: Is Struts compatible with other Java technologies?

Interview Question: Does Struts include its own unit tests?

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

Interview Question: Do ActionForms have to be true JavaBeans?

Interview Question: What is difference between EJB 1.1 and EJB 2.0?

Interview Question: What is the difference between sessioncontext and entitycontext?

Latest Articles (in Interview)

Comment on this tutorial