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

How can we avoid direct access of jsp pages from client browser?

844


Which categories can be divided jstl tags, give examples.

711


Give the syntax for jsp comments.

675


What are the components that make up a tag library in jsp?

626


How many jsp scripting elements are there and what are they?

751


Why is it that JComponent have add() and remove() methods but Component doesn’t?

730


What are the lifecycle phases of a jsp?

758


When i am useing useBean tag of JSP in weblogic server It show compiletion error..Like bad class file: C:\bea\user_projects\domains\Mahesh\applications\UseBean\WEB-INF\classes\user\UserData.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. user.UserData user1 = null; //[ /SaveName.jsp; Line: 4]

1933


How to use jsp el to get http method name?

695


What is the use of implicit object named "application" in Application?

1465


Can we override the jspinit(), _jspservice() and jspdestroy() methods?

720


Explain jsp and tell its uses?

744


How can I use the results of my method? ea: <%! method (int x) { stuff return y; } %> <% out.println(y); %> how can I make this work? "y" is a variable made during the method.

1851


What is difference between include directive and jsp:include action?

707


What is jsp expression?

717