Programming Tutorials

What are implicit Objects available to the JSP Page?

By: Karthik in Interview Tutorials on 2012-06-16  

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.






Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

What is JSP Scriptlet?

Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?

Tell me something about J2EE component?

Interview Question: Is there a particularly good IDE to use with Struts ?

What are implicit Objects available to the JSP Page?

Interview Question: How does Struts work?

Interview Question: Do you have to credit Struts on your own website?

Differentiate between .ear, .jar and .war files.

What is the difference between interface and abstract class?

Explain the user defined Exceptions?

The output of System.out.println(5>>2) in Java

Types of Interviews

Explain garbage collection?

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

What do you understand by a container in J2EE?

Latest Articles (in Interview)