What are implicit objects?

Answer Posted / lakshya mathur

JSP Implicit Objects are the Java objects that the JSP Container makes available to developers in each page and developer can call them directly without being explicitly declared. JSP Implicit Objects are also called pre-defined variables.

JSP supports nine Implicit Objects which are listed below:

Object Description
request This is the HttpServletRequest object associated with the request.
response This is the HttpServletResponse object associated with the response to the client.
out This is the PrintWriter object used to send output to the client.
session This is the HttpSession object associated with the request.
application This is the ServletContext object associated with application context.
config This is the ServletConfig object associated with the page.
pageContext This encapsulates use of server-specific features like higher performance JspWriters.
page This is simply a synonym for this, and is used to call the methods defined by the translated servlet class.
Exception The Exception object allows the exception data to be accessed by designated JSP.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are jsp el implicit objects and how it’s different from jsp implicit objects?

610


What are the features of jsp?

588


Why jsp is better over static html also explain lifecycle of a jsp?

529


How will you use jsp el in order to get the http method name?

578


What is difference between jsp and jstl?

553






What is jsp expression?

602


What is called jsp directive?

593


Can we use jsp implicit objects in a method defined in jsp declaration?

598


How do you delete the session data?

599


Can I use javascript on jsp page?

586


When does a container initialize multiple jsp / servlet objects?

696


What are custom tags in jsp?

629


How do you connect to the database from jsp?

624


Why is jstl used?

586


What are directives in jsp?

599