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 is the differences between the jsp custom tags and java beans?

730


How can we stop errors on display in a jsp page?

683


Which tags are used for bean development?

669


What is a translation unit?

685


How did you implement caching in jsp?

848


How many tags are provided in jstl?

853


What is el?

680


How to include static files in a jsp?

730


How does a jsp work?

658


How to retrieve warnings?

709


What are the jsp tags?

678


Is the session object always created on the jsp page, is it possible to disable its creation?

706


How can I override the jspdestroy() method within a jsp page?

695


How we can include the result of another page in jsp?

675


HOW CAN WE COMPARE TWO PDF FILES USING JSP ?

2581